pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

python中Read timed out.报错

在python使用中,会经常遇到ReadTimeout错误,造成这个问题的原因就是网速问题,

方法一:可以考虑换个快一点的网速,因为我用的是校园网所以也很有可能是网太慢而导致的。如下图只下载了13k就停了

python中Read timed out.报错

方法二:(借鉴别的博客的)

pip --default-timeout=1000 install -U 模块名
例如
pip --default-timeout=1000 install -U pytesseract
来下载pytesseract,让它的延迟检测时间变长。

 

参考博客:https://blog.csdn.net/hahaxq/article/details/104120025

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2021-07-16
  • 2021-11-20
猜你喜欢
  • 2021-07-30
  • 2021-12-09
  • 2021-05-26
  • 2022-12-23
  • 2022-01-09
  • 2021-12-15
相关资源
相似解决方案