成功解决socket.timeout: The read operation timed out问题

我们有时候在pip install 某个包时会出现一大排红色的字,并提示socket.timeout: The read operation timed out的问题,可参考如下解决方法:

  1. 换镜像源下载
    清华镜像源:https://pypi.tuna.tsinghua.edu.cn/simple
    豆瓣镜像源:http://pypi.douban.com/simple/
    如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xgboost
  2. 设置超时时间
    如:pip --default-timeout=1000 install -U rasa_core
发布了24 篇原创文章 · 获赞 11 · 访问量 693

猜你喜欢

转载自blog.csdn.net/qq_42662568/article/details/104995999