Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) ...的解决方法

在安装selenium的时候一直报错,下载不了

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) ...的解决方法_第1张图片

根据网上的资料发现是pip源本身的问题,我们可以通过更换pip源去下载,以下是我从网上收集的一些源

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

输入pip  install +包名 +pip源就可以下载,但是有可能出现以下问题,是SSL证书没被信任

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) ...的解决方法_第2张图片ip  改成pip install +selenium(包名) -i  http://pypi.douban.com/simple/(pip源)-trusted-host  pypi.douban.com就可以成功了

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) ...的解决方法_第3张图片

你可能感兴趣的:(python,selenium,python)