There was a problem confirming the ssl certificate ……
在安装一个Python库onetimepass时发生下面的问题:
pip install onetimepass
Could not fetch URL https://pypi.python.org/simple/six/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600) - skipping
Could not find a version that satisfies the requirement six (from onetimepass) (from versions: )
No matching distribution found six (from onetimepass)
经过网上查阅资料,发现是python版本的问题,高版本的Python会默认SSL。
解决方法:
pip install --trusted-host pypi.python.org onetimepass
参考文献
http://stackoverflow.com/questions/16370583/pip-issue-installing-almost-any-library
总结
以上是生活随笔为你收集整理的There was a problem confirming the ssl certificate ……的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 实现第一个自定义nginx模块
- 下一篇: 在rMBP上利用Python的oneti