torch1.4.0与torchvision0.5.0的安装历程

torch1.4.0与torchvision0.5.0的安装历程(win10&&ubuntu18.04)

首先说一下自己的安装环境:
python3.7想要复现一下patchmatchnet这个深度学习的网络,直接pip安装总是会报下面的错误:

ERROR: Could not find a version that satisfies the requirement torchvision0.7.0 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.1,
0.5.0, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0)
ERROR: No matching distribution found for torchvision
0.7.0

解决方法:直接使用pytorch的链接下载
pip install torch=1.4.0 torchvision=0.5.0 -f https://download.pytorch.org/whl/torch_stable.html

之后又在linus(本人是ubuntu18.04)中安状发现用上述方法下载速度太慢了,甚至timeout
解决方法:
改用清华源:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn torch1.4.0 torchvision0.5.0

  • 9
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值