Failed to install version 2

Excuting the install statement to upgrade to version 2 given in ‘pytorch getting started’ has simply upgraded me from 1.12 to 1.13. Is it because I need a higher version of cuda?

pip install --upgrade --extra-index-url 1 “torch==1.12.1+cu113” torchvision==0.13.1+cu113 torchaudio==0.12.1

I believe you’re explicitly telling pip to install torch==1.12.1+cu113. Use something like
pip install torch==2.1.2+cu118 torchaudio torchvision --extra-index-url https://download.pytorch.org/whl/cu118 instead. This will install torch 2.1.2 and latest compatible versions of torchaudio and torchvision.

I had made a mess of the command, Now installed as shown with cu118 tho with various dependency problems,
[many thanks for your helpful response,