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,写入一下内容

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

之后再使用 pip install xxx

成功。 

猜你喜欢

转载自blog.csdn.net/qq_34504481/article/details/81910253