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 torchvision0.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
Original: https://blog.csdn.net/wyd117/article/details/123529913
Author: wyd117
Title: torch1.4.0与torchvision0.5.0的安装历程
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/709925/
转载文章受原作者版权保护。转载请注明原作者出处!