通过pip命令,安装selenium,执行 pip install selenium时,提示:Could not fetch URL https://pypi.org/simple/selenium/, There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/selenium/
1、检查是否打开了抓包工具,比如:fiddler、Charles,如果打开了,关闭抓包工具,再重新执行命令试试
2、如果还不行,执行如下命令:
python -m pip install selenium --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org
执行pip命令安装selenium提示“Could not fetch URL https://pypi.org/simple/selenium/”解决办法
最新推荐文章于 2024-04-01 09:11:40 发布