使用Anaconda中的pip命令报错:pip is configured with locations that require TLS/SSL

1.问题描述

今天想要用pip安装itchat,但是执行pip install时报错,经过两步处理后问题解决

2.问题详情

由于解决问题的时候忘记截图了,于是从网上找到图片用来描述问题。

首先是黄字问题,是因为网络的问题,要使用国内的镜像源来加速:pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

img

接下来是第二个问题,用pip安装,提示找不到ssl模块,错误描述大概长这样:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 
Collecting xxx 
Could not fetch URL https://pypi.python.org/simple/xxxx/: There was a problem confirming the ssl certificate: Can’t connect to HTTPS URL because the SSL module is not available. - skipping 
Could not find a version that satisfies the requirement xxx (from versions: ) 
No matching distribution found for xxx

解决方法:

查了很多博客里的解决办法,大多数都是Linux里的啊,可是我W10系统该怎么解决勒?其实也很简单,"[Anaconda安装目录]\Library\bin"加入PATH后,问题解决!

附上截图

使用Anaconda中的pip命令报错:pip is configured with locations that require TLS/SSL_第1张图片

你可能感兴趣的:(使用Anaconda中的pip命令报错:pip is configured with locations that require TLS/SSL)