Could not find a version that satisfies the requirement torch==1.4.0 (from -r requirements.txt (line

错误提示:Could not find a version that satisfies the requirement torch==1.4.0 (from -r requirements.txt (line

参考

主要是版本的问题

第一步:

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

第二步:

pip install torchvision==0.4.1

 

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) 这个错误提示说明无法找到满足要求的torch版本1.4.0。解决这个问题的一个方法是更改torch版本。你可以使用以下步骤来更改torch版本: 1. 使用以下命令安装torch版本1.4.0: ``` pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html ``` 这个命令会从指定的链接下载torch版本1.4.0并安装。 另外,你也可以查看官方网站上的版本信息,确认是否有1.4.0对应的torch版本。如果官方网站上没有1.4.0的版本,你可以尝试安装其他兼容的版本,如torch1.6.0对应的torchvision版本是0.7.0。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [Could not find a version that satisfies the requirement torch==1.4.0 (from torchvision)](https://blog.csdn.net/Miaosh999/article/details/104322336)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [安装torchversion报错ERROR: Could not find a version that satisfies the requirement torch==1.4.0 ...](https://blog.csdn.net/qq_38163931/article/details/113860257)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值