欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

There was a problem confirming the ssl certificate ……

发布时间:2023/11/27 77 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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 ……的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。