zl程序教程

您现在的位置是:首页 >  后端

当前栏目

pip install时遇到ReadTimeoutError

pip 遇到 install
2023-09-14 09:00:00 时间

在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