If you want to use latest version of PyTorch, you should install from source 48.
Below is an example for installing PyTorch from source.
$ git clone https://github.com/pytorch/pytorch
$ export CMAKE_PREFIX_PATH=/home/yunjey/anaconda3   # your anaconda path
$ conda install numpy mkl setuptools cmake gcc cffi
$ conda install -c soumith magma-cuda80
$ export MACOSX_DEPLOYMENT_TARGET=10.9   # if OSX
$ pip install -r requirements.txt
$ python setup.py install