pip install xxx:Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming解决办法

pip install python_speech_features

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmingthe ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)) - skipping

网上说用以下代码:

pip –trusted-host pypi.python.org install + 想要安装的包

可以解决部分一些情况,博主的多次输入仍出现以上错误。

最后的解决办法如下:

进入cmd 创建 pip文件夹

然后在该文件夹下创建pip.ini,写入一下内容
[global]

index-url=http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host=mirrors.aliyun.com

再配置环境变量:%HOMEPATH%\pip\pip.in

之后再使用 pip install xxx

成功。 

原文链接:https://blog.csdn.net/qq_34504481/article/details/81910253

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容