在Windows中使用Anaconda安装软件包错误:pip配置了需要TLS / SSL的位置

时间:2019-03-29 06:16:51

标签: python windows ssl pip anaconda

当我尝试在Anaconda promt中安装任何软件包时,出现错误:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting plotly
  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/plotly/
 Could not fetch URL https://pypi.org/simple/plotly/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/plotly/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement plotly (from versions: )
No matching distribution found for plotly
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

我当前正在使用Windows 10,并尝试重新安装Anaconda,并向环境变量添加Anaconda路径。 我也尝试了很多软件包,但是遇到了同样的问题。

如何解决?

command image

0 个答案:

没有答案