Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install older version of pytorch

Following this 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

How to install older version of pytorch?

like image 879
mrgloom Avatar asked Jun 14 '19 12:06

mrgloom


1 Answers

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==

This means that version 0.2 is not available

You can download the specific version (wheels seem available) and install it with pip install

like image 93
abc Avatar answered Oct 13 '22 17:10

abc