找不到满足要求的版本 torch==1.7.0+cpu

swo*_*wor 0 pytorch

我想torch==1.7.0+cpu从requirements.txt安装我有一个错误

找不到满足 torch==1.7.0+cpu 要求的版本(来自 -rrequirements.txt(第 42 行))(来自版本:0.1.2、0.1.2.post1、0.1.2.post2、0.3 .1、0.4.0、0.4.1、1.0.0、1.0.1、1.0.1.post2、1.1.0、1.2.0、1.3.0、1.3.1、1.4.0、1.5.0、1.5 .1、1.6.0、1.7.0、1.7.1、1.8.0、1.8.1) 未找到 torch==1.7.0+cpu 的匹配发行版

我在用

Python 3.6.12 (default, Aug 18 2020, 02:08:22) 
[GCC 5.4.0 20160609] on linux
Run Code Online (Sandbox Code Playgroud)

Aaj*_*ngh 5

如果您在从requirements.txt安装模块时遇到此问题,那么您只需将以下行添加到requirements.txt文件的顶部

-f https://download.pytorch.org/whl/torch_stable.html