pip安装selenium报错:Read timed out
今天打算把selenium降级重新安装,发现安装时总是失败,报如下错误:
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.py
thon.org', port=443): Read timed out.
原因是超时了,解决方法:安装时指定超时时间
pip --default-timeout=100 install -U selenium==2.53.6
参考博客:http://www.cnblogs.com/xiaoduc-org/p/5958973.html