I am trying to install Torch version 1.6.0.
On the Pypi page it states that Torch 1.6.0 is compatible with Python >= 3.6.1.
However, the following error is thrown when trying to install Torch using pip on Python 3.6.1.
(.venv) python --version
>>> python 3.6.1
(.venv) pip install torch==1.6.0
>>> ERROR: Could not find a version that satisfies the requirement torch==1.6.0 (from versions: 1.7.0)
>>> ERROR: No matching distribution found for torch==1.6.0
I have also tried installing it on python versions 3.7.9, 3.8.0, 3.9.7, 3.10.0.
How can I resolve this issue?
If Torch 1.6.0 cannot be installed on this Python version, on which version can it be installed?
Further details:
I am using pip 22.3.1. The virtual environment is created using Visual Studio Code.
2
Answers
You can install it according to docs like this:
Choose
CUDA
version according to yourCUDA
installation.That says nothing about OS compatibility or the availability of the correct whl files. If you check the files tab
you will see
So only whl files for python 3.6 and 3.7 and only for MacOs and manylinux.
As doneforaiur has pointed out though, whl files are available from https://download.pytorch.org/whl/torch_stable.html