当前位置:   article > 正文

解决socket.timeout:The read operation timed out_timeouterror: the read operation timed out

timeouterror: the read operation timed out

出现问题

在服务器端配置yolov5的环境时
使用pip install -r requirements.txt命令时报错
如下图所示,是因为安装nvidia-cublas-cu11==11.10.3.66时超时
在这里插入图片描述

解决方法

大概是由于网速不稳定,下载过慢,超出默认时间。
修改输入 pip --default-timeout=100 install 包名
这里我使用的是修改默认时间并且换源

pip --default-timeout=1000  install -U nvidia-cublas-cu11==11.10.3.66 -i https://pypi.tuna.tsinghua.edu.cn/simple
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/864011
推荐阅读
相关标签
  

闽ICP备14008679号