https://zhuanlan.zhihu.com/p/26871672
1. 添加清华源,然后使用conda进行安装。(注:0.3.1 及以后)
### for those who don't use tsinghua mirror beforecondaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/condaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/condaconfig--setshow_channel_urlsyes
### for 0.4.0 and latercondaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
# for CPU only packagescondainstallpytorch-cpu
# for Windows 7, Windows Server 2008 or up, CUDA 8condainstallpytorch
# for Windows 7, Windows Server 2008 or up, CUDA 9condainstallpytorchcuda90
# for Windows 7, Windows Server 2008 or up, CUDA 9.1condainstallpytorchcuda91
### for 0.3.1condaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
# for CPU only packagescondainstallpytorch-cpu
# for CUDA 8, for Windows 7, Windows 10 or Windows Server 2016condainstallpytorch
# for CUDA 9, for Windows 7, Windows 10 or Windows Server 2016condainstallpytorchcuda90
# for CUDA 9.1, Windows 10 or Windows Server 2016condainstallpytorchcuda91
# for CUDA 8, Windows 7 or Windows Server 2008/2012condainstallpytorch_legacy
# for CUDA 9, Windows 7 or Windows Server 2008/2012condainstallpytorch_legacycuda90
https://blog.csdn.net/manong_wxd/article/details/78583098
请将Anaconda的Python版本升级至3.5.3/3.6.2及以上。
如果安装了CUDA编译的包,请确保你的电脑有Nvidia的显卡
conda install -c anaconda python=3.6.1 # 更新至指定版本
conda updata python # 直接更新
https://blog.csdn.net/liang_xiao_yun/article/details/79540254
良心文章
https://blog.csdn.net/qq_27690393/article/details/80682533
pytorch高级API fastai
https://www.pytorchtutorial.com/fastai-tutorial-1-installation/