The best way to get a clean installation of PyTorch, is to install the pre-compiled binaries from the Anaconda distribution. Therefore, we need to setup Anaconda first.
- Go to the download section and download your desired Anaconda version for Linux
- Run the downloaded shell script (the name of the script depends on your previous download), do
cd ~/Downloads
sh Anaconda3-2018.12-Linux-x86_64.sh 