Anaconda Prompt使用pip安装时出现socket.timeout: The read operation timed out错误
Anaconda Prompt使用pip安装时出现**socket.timeout: The read operation timed out**错误
Anaconda Prompt使用pip安装时出现**socket.timeout: The read operation timed out**错误
Anaconda Prompt使用pip安装时出现**socket.timeout: The read operation timed out**错误

使用pip出现这样的问题,直接原因时链接超时,两边网络连接速度慢,导致下载速度很慢。解决方法:
①增加超时判定时间
使用语句:pip --default-timeout=100 install 包名(windows下)
pip --default-timeout=100 install -U 包名(Linux下)
②换镜像源下载(速度快)
清华镜像源:https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣镜像源:http://pypi.douban.com/simple/
此处可使用pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python解决。

相关文章:

  • 2021-07-31
  • 2021-07-30
  • 2021-09-20
  • 2021-06-30
  • 2022-01-05
  • 2021-12-09
  • 2021-12-15
  • 2021-09-21
猜你喜欢
  • 2021-08-05
  • 2021-12-28
  • 2021-05-02
  • 2021-07-27
  • 2021-09-27
  • 2022-12-23
  • 2021-07-12
相关资源
相似解决方案