今天打算把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
时间: 2024-11-04 19:30:00