The easiest way would be to install it with conda via
conda install pytorch=0.3.1 -c soumith

EDIT: Additionally the website states:



 pytorch website:

CUDA support is optional; for example, you can install the cu80/torch-0.2.0.post3-cp36-cp36m-manylinux1_x86_64.whl package on a system that does not have CUDA.