Hi I got an error while trying to install pytorch:
PS C:\windows\system32> pip install torch===1.7.0+cu110 torchvision===0.8.1+cu110 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch===1.7.0+cu110 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch===1.7.0+cu110
What version of Python and Pip are you running?
Have you tried updating pip?
python -m pip install –upgrade pip
Hi I am using python 3.8.6 and pip 20.2.4
PS C:\windows\system32> py -m pip install --upgrade pip
Requirement already up-to-date: pip in d:\environments\python\lib\site-packages (20.2.4)
PS C:\windows\system32> py --version
I tried to install it directly from the website but it does not work:
PS C:\windows\system32> pip install https://download.pytorch.org/whl/cu110/torch-1.7.0%2Bcu110-cp38-cp38-win_amd64.whl
ERROR: torch-1.7.0+cu110-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
Ah my bad sorry, I installed the 32 bit python instead of 64 bits, so it is not supported
I solved the problem with reference to the below solution.
If you have this issue while installing your modules from requirements.txt then you could simply add the following line to the top of your requirements.txt file
ref: pytorch - Could not find a version that satisfies the requirement torch==1.7.0+cpu - Stack Overflow