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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM