在pip install时遇到ReadTimeoutError,详细报错为
File “d:/python37/lib/contextlib.py”, line 130, in __exit__
self.gen.throw(type, value, traceback)
File “d:/python37/lib/site-packages/pip/_vendor/urllib3/response.py”, line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, “Read timed out.”)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’pypi.tuna.tsinghua.edu.cn
‘, port=443): Read timed out.
解决的方法:
install后面加上 –default-timeout=100
eg:
pip install --default-timeout=100 jupyter
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/20452.html