python安装selenium下载超时的处理方法
安装进度条到一半报错
pip下载的是国外的网站,网络不好,多试几次也可
报错:pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
使用:
pip --default-timeout=100 install -U selenium==2.53.6
或者换
换个镜像
比如用豆瓣的镜像安装selenium
pip install xxx -i http://pypi.douban.com/simple
记得要-i
在cmd中尝试结果,报这样的错误
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)b
ERROR: No matching distribution found for selenium
解决方法:命令中 把http改成https即可

浙公网安备 33010602011771号