ERROR: Could not find a version that satisfies the requirement torch==1.8.0 (from versions: 2.0.0, 2.0.1) ERROR: No matching distribution found for torch==1.8.0
时间: 2023-08-21 14:09:49 浏览: 281
这个错误通常表示您的 Python 环境中没有安装 PyTorch 1.8.0 版本。您可以尝试在终端中运行以下命令来安装 PyTorch 1.8.0:
```
pip install torch==1.8.0 -f https://download.pytorch.org/whl/cu111/torch_stable.html
```
请注意,这需要您的计算机支持 CUDA 11.1,如果不支持,可以更换下载链接中的 `cu111` 部分为您的 CUDA 版本号。如果您不知道自己的 CUDA 版本,可以在终端中运行 `nvcc --version` 来查看。
相关问题
ERROR: Could not find a version that satisfies the requirement torch==1.9.0 (from versions: 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 for torch==1.9.0
I apologize for the confusion. It seems that the specific version of PyTorch (1.9.0) is not available for installation through pip in this case.
However, you can try installing the latest version of PyTorch, which should be compatible with the 'deepforest' module. To install the latest version of PyTorch, run the following command:
```
pip install torch
```
This will install the latest version of PyTorch available for your Python environment. After installing PyTorch, you can then proceed to install the 'deepforest' module using the command I mentioned earlier:
```
pip install deepforest
```
This should resolve the issue. If you encounter any further errors or need additional assistance, please let me know!
ERROR: Could not find a version that satisfies the requirement torch==1.8.0+cu111
根据引用中的错误信息,提示无法找到满足要求的torch==1.6.0 cu101的版本。根据引用的建议,您可以手动在https://pytorch.org/get-started/previous-versions/找到适合您的版本。另外,根据引用的经验,您需要选择与您的Python版本和位数相对应的选项。
针对您的问题,如果您想找到torch==1.8.0 cu111的版本,您可以尝试在https://pytorch.org/get-started/previous-versions/上查找是否有满足您要求的版本。
阅读全文