python通过pip安装torch错误及解决办法ERROR: Could not find a version that satisfies the requirement torch

错误代码

pip install torch==1.6.0+cu101 to
rchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.htm
l
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.6.0
+cu101
ERROR: No matching distribution found for torch==1.6.0+cu101

先去官网查找需要安装的版本

https://pytorch.org/ 

这个代码执行也不行,只能去这里手动查找 https://pytorch.org/get-started/previous-versions/

进入错误提示里的下载地址

选择一个然后用迅雷下载

然后cmd进入下载目录,运行pip install 文件名,有的电脑还是会出错,一般情况是废了,建议换个电脑在试,下面是各种错误的截图

 

 使用另种命令安装torch,安装成功了,但是还是用不了

 安装cuda前测试是False,安装cuda后就会变成true

 

cuda安装

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

花开花落的个人博客

你的鼓励是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值