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

pip install xxx:Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming解决办法_第1张图片

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

之后再使用 pip install xxx

成功。 

你可能感兴趣的:(python,pip,install,错误解决,pip,install,error,error)