http://pytorch.apachecn.org/有安装办法.
windows python3.6 ,3.5环境
conda install pytorch-cpu -c pytorch
pip3 install torchvision
linux 环境 下
python2.7 conda install pytorch-cpu torchvision-cpu -c pytorch cuda:8 conda install pytorch torchvision -c pytorch;conda install pytorch torchvision cuda91 -c pytorch ;conda install pytorch torchvision cuda90 -c pytorch
python3. conda install pytorch-cpu torchvision-cpu -c pytorch cuda: conda install pytorch torchvision cuda91 -c pytorch
osx pip3 install torch torchvision
在centos7及oxs python36下安装pytorch都失败了,经检查,torch依赖的numpy版本较低,卸载已安装的,
pip3 install numpy
pip3 install numpy==1.14.3
pip3 install torch torchvision
centos与OSX建议直接下载源码编译。