2021-03-04

https://blog.csdn.net/Miaosh999/article/details/104322336?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161485673916780266226776%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=161485673916780266226776&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v29-1-104322336.pc_search_result_before_js&utm_term=ERROR%3A+Could+not+find+a+version+that+satisfies+the+requirement+torch%3D%3D1.4.0+%28from+torchvision%29+%28from+versions%3A+0.1.2%2C+0.1.2.post1%2C+0.1.2.post2%2C+1.7.1%29+ERROR%3A+No+matching+distribution+found+for+torch%3D%3D

ERROR: Could not find a version that satisfies the requirement torch1.4.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.1) ERROR: No matching distribution found for torch1.4.0 (from torchvision)的解决办法!
安装torchvision失败:原因在于torch版本不适配。

首先安装适配的torch版本

pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html

完成之后在重新安装torchvision

 pip install torchvision

直至显示完成安装即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值