Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。(视窗10)_Python_Python 3.x_Ssl_Pip_Quandl - Fatal编程技术网

.pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。(视窗10)

.pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。(视窗10),python,python-3.x,ssl,pip,quandl,Python,Python 3.x,Ssl,Pip,Quandl,我正在尝试安装quandl以便在Jupyter笔记本中使用py-m pip安装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 beca

我正在尝试安装quandl以便在Jupyter笔记本中使用<代码>py-m pip安装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```


如果使用的是蟒蛇,请在环境路径中添加以下内容:-

D:\Anaconda3; 
D:\Anaconda3\Scripts; 
D:\Anaconda3\Library\bin;

尝试在您打算安装pip的目录中重新安装python


然后安装pip,您就可以开始了。

我在别处看到过这篇文章。我在“路径”下的“系统环境变量”中添加了这个。但它不起作用。这是正确的方法吗?或者您是说添加到Conda/Anaconda?编辑环境路径后,需要重新启动终端/命令提示符。谢谢。我做到了。仍然得到相同的错误:警告:pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。遗憾的是,如果Anaconda不是安装的一部分,这不是答案。如果它是作为QGIS的一部分安装的呢?还是OSGeo4W64?我对标准的Python3.7安装没有任何问题,但是由于这个错误,我无法在QGIS解释器中安装任何东西。添加解释器路径(例如:
C:\Program Files\QGIS 3.10\apps\Python37\Scripts
)无法解决此问题。是否有人对此问题找到了可行的答案?我在OSGeo4W64安装和QGIS 3.10 ltr安装中都遇到了相同的问题。我有需要第三方软件包的插件,无法安装。参考: