pytorch安装包常见错误(自己用,持续记录~)

1.解决pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool:

方法:直接指定特定源

  • 指定清华源(貌似快一点,但最终还是没成功)
pip --default-timeout=100 install torch -i https://pypi.tuna.tsinghua.edu.cn/simple 
  • 指定豆瓣源(很快,Successfully)
pip --default-timeout=100 install torch -i https://pypi.douban.com/simple

猜你喜欢

转载自blog.csdn.net/qq_52686989/article/details/130940454