美文网首页
pip install xxx:Could not fetch

pip install xxx:Could not fetch

作者: 安琪儿2018 | 来源:发表于2019-08-07 16:02 被阅读0次

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

相关文章

网友评论

      本文标题:pip install xxx:Could not fetch

      本文链接:https://www.haomeiwen.com/subject/lstadctx.html