Could not find a version that satisfies the requirement torch==1.4.0 (from torchvision) (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1) ERROR: No matching distribution found
时间: 2023-08-09 15:09:56 浏览: 82
这个错误是由于你安装的torchvision需要torch 1.4.0版本,但你的系统上没有安装该版本的torch。你可以尝试安装1.4.0版本的torch,或者更新torchvision到支持你已安装的torch版本的最新版本。你可以通过以下命令安装torch 1.4.0版本:
```
pip install torch==1.4.0
```
如果你已经安装了较新版本的torch,可以通过以下命令更新torchvision:
```
pip install --upgrade torchvision
```
相关问题
Could not find a version that satisfies the requirement torch==1.4.0 (from versions: 2.0.0, 2.0.1)
根据引用和引用的信息,可以知道在Python 3.7的虚拟环境中安装torch的1.3.0版本是成功的。但是,根据引用所提供的信息,找不到满足要求的torch==1.4.0的版本。根据这些信息,我们可以得出结论,目前没有torch的1.4.0版本可用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [ERROR: Could not find a version that satisfies the requirement torch==1.3.0解决方案](https://blog.csdn.net/dream6985/article/details/127305278)[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: 100%"]
[ .reference_list ]
Could not find a version that satisfies the requirement torch==1.4.0 (from versions:
这个错误提示表明在你的环境中没有找到符合要求的torch版本1.4.0。解决这个问题的方法有两种:
1. 检查你的环境是否正确安装了torch,并且版本是否为1.4.0。如果没有安装或者版本不正确,可以使用pip install torch==1.4.0命令来安装或更新torch版本。
2. 如果你已经安装了torch,但是仍然出现了这个错误,可以尝试使用pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html命令来安装torch版本1.4.0。这个命令会从pytorch官方网站下载torch版本1.4.0并安装。