Install PyTorch 1.7

Hello I am trying to install PyTorch 1.7 to use for a Github repo I found quite interesting, however when I run the pip commands found on Previous PyTorch Versions | PyTorch, it appears the version of PyTorch could not be found. Is there a way to manually download it, or is the repo simply no longer feasible to use?

Command I ran:

pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

Output I got

I don’t know which Python version you are using but you could try to use an older one which was available when PyTorch 1.7 was released.

1 Like

I have Python 3.11.4, I guess I would need to downgrade and the above code should work?

A quick search shows PyTorch==1.7 was released in Oct. 2020 while Python==3.11 was released in Oct. 2022, so yes you would need to downgrade your Python version.

1 Like

Good to know! Thank you very much for the help!

3.8 was the trick!