Unable to install Pytorch on Python 3.9

I had an issue trying to install Pytorch for Cuda 12.1. I used the following command from your install website:
“pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121”.

I got the following error:

Looking in indexes
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

Im on Windows 10 and a venv of Python 3.9.0. I tried to install the packages one after another so I ran
“pip install torch --index-url https://download.pytorch.org/whl/cu121
and the same for torchvision and torchaudio. Torchvision got installed just fine but for the other two I got the same error as before.

Im really confused on what to do so any Idea would greatly help out.
Thanks in advance! :slight_smile: