关注此https://pytorch.org/get-started/previous-versions/#via-pip
pip install torch==0.2.0_4 -f https://download.pytorch.org/whl/cpu/stable
Collecting torch==0.2.0_4
Could not find a version that satisfies the requirement torch==0.2.0_4 (from versions: 0.1.2, 0.1.2.post1, 0.3.1, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0)
No matching distribution found for torch==0.2.0_4
如何安装老版本的pytorch?
最佳答案
pip install torch==
Collecting torch==
ERROR: Could not find a version that satisfies the requirement torch== (from versions: 0.1.2, 0.1.2.post1, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0) ERROR: No matching distribution found for torch==
这意味着版本 0.2 不可用
您可以下载特定版本(wheels 似乎可用)并使用pip install
安装它
关于python - 如何安装旧版本的pytorch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56598674/