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文件夹
md 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