
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda install pytorch-cpu=0.4.1
conda install torchvision-cpu
python import torch torch.__version__ 显示版本号、不报错就说明安装成功了

原文:https://www.cnblogs.com/HuangYJ/p/13254403.html