ERROR: No matching distribution found for torch==1.4.0 (from torchvision)

ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.4.0 (from torchvision)

 

参考了https://www.jianshu.com/p/5694b708913c    这位老哥的

使用pip install --no-deps torchvision命令解决

pip install --no-deps torchvision==0.4.0 可以安装指定版本

torch和torchvision版本需要对应才能使用,否则会显示找不到torchvision model

ERROR: No matching distribution found for torch==1.4.0 (from torchvision)_第1张图片

你可能感兴趣的:(python,torchvision)