I've installed Pytorch from source, because my CPU is old, so I couldn't even install by anaconda.
To install from source, there are a few steps:
-
Install CUDA Toolkit https://developer.nvidia.com/cuda-downloads
-
Install cudNN Runtime Library https://developer.nvidia.com/cudnn