在官网根据相应环境下载对应wheel安装包
(python2.7)
http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
(python3.5)
http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
下载torchvision安装包
https://pypi.python.org/pypi/torchvision/0.1.8
pip install torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
pip install torchvision-0.1.8-py2.py3-none-any.whl
进入python交互式命令行,输入
import torch