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


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)

pip安装时提示:[SSL: CERTIFICATE_VERIFY_FAILED] certi ficate verify failed (_ssl.c:720)_第1张图片

原因:

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

命令如下:

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

安装成功:
pip安装时提示:[SSL: CERTIFICATE_VERIFY_FAILED] certi ficate verify failed (_ssl.c:720)_第2张图片

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


你可能感兴趣的:(Python3足迹,Python3,SSL)