Go to https://www.anaconda.com/products/distribution, select your platform (Windows/Mac/Linux) and hit download

Open the .exe/.pkg/whatever file linux uses, and follow the installation instructions.
During the installation you will get the option to add Anaconda’s python to your path variable and set it as your default python. If you already have python installed and want to continue using your current installation, don’t check this.
(it may ask you to update it immediately after installing it, idk why it does this)
Open Anaconda Navigator:

Create a new environment:

Name the environment appropriately and select a Python version in the form 3.9.x. Pytorch doesn’t currently support python versions 3.10 and above, though that’ll probably change in the future

Next, we’re going to install PyTorch
Go to https://pytorch.org/