使用 pytorch.org
上的安装指南关于如何安装它和我使用的命令是
pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
但它出现了这个错误;ERROR: Could not find a version that satisfies the requirement torch===1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch===1.4.0
这甚至是与我有关的问题吗?其他人可以使用此命令吗?
Pip 已安装并适用于其他模块、Python 3.8、CUDA 版本 10.1、Windows 10 Home 2004
最佳答案
看起来这个问题与虚拟环境有关。您是否在另一个/新的虚拟环境中尝试过推荐的安装线?如果它没有帮助,可能的解决方案可能是使用直接链接到 PyTorch 和 TorchVision 为您的系统构建安装包:
pip install https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl
pip install https://download.pytorch.org/whl/cu101/torchvision-0.5.0-cp38-cp38-win_amd64.whl
关于python - 安装 PyTorch 1.4 的问题 - "No matching distribution found for torch===1.4.0",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60137572/