跟随此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==
这意味着0.2版不可用
您可以下载特定版本(wheels似乎可用)并使用
pip install
安装它关于python - 如何安装旧版本的pytorch,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56598674/