pip安装时提示:[SSL: CERTIFICATE_VERIFY_FAILED] certi ficate verify failed (_ssl.c:720)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35304570/article/details/79981497


pip install selenium报错:

Could not fetch URL https://pypi.python.org/simple/selenium/: There was a prob
lem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate
 verify failed (_ssl.c:720) - skipping

pip._vendor.requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certi

ficate verify failed (_ssl.c:720)


原因:

ssl证书信任问题,可在pip命令中添加信任

命令如下:

pip --trusted-host pypi.python.org install selenium

安装成功:

文章参考:https://blog.csdn.net/kongxx/article/details/51187482


阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页