Mac 安装 Selenium 报错:Could not fetch URL https://pypi.org/simple/pip/……

背景:Mac 上通过 pip3 install selenium 安装 Selenium 时,报错无法安装。

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))
解决方法:检查电脑是否开了代理工具,关掉就好了 T-T

检查是否安装成功:pip3 list
Mac 安装 Selenium 报错:Could not fetch URL https://pypi.org/simple/pip/……_第1张图片

你可能感兴趣的:(python,python,pycharm,selenium,测试工具,macos)