First, you should confirm your python version and GPU state.
The bellow example shows how to install a torch matching the python3.11 and GTX1080.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121