【发布时间】:2019-12-28 13:16:37
【问题描述】:
我正在尝试安装 quandl 以在 Jupyter 笔记本中使用。 py -m pip install quandl
但我收到以下错误,即 Python 中的 SSL 模块不可用。
Collecting quandl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/quandl/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/quandl/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/quandl/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/quandl/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/quandl/
Could not fetch URL https://pypi.org/simple/quandl/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/quandl/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement quandl (from versions: none)
ERROR: No matching distribution found for quandl
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping```
*******************************************************************************************************
I tried using the following, but nothing worked
```py -m pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user quandl```
【问题讨论】:
-
有人对此问题有可行的答案吗?我在安装 OSGeo4W64 和安装 QGIS 3.10 ltr 时遇到了同样的问题。我有需要第三方软件包的插件,我无法安装它们。
标签: python python-3.x ssl pip quandl