pip install时遇到ReadTimeoutError

在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  

 

posted @ 2020-12-28 15:25  慕尘  阅读(362)  评论(0编辑  收藏  举报