新建环境
conda create -n pytorch python=3.6
使用清华源安装pytorch
设置清华源:(也可以直接conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
)
tuna
.condarc
在C:\Users\zhang
下,修改为上面的就行。
使用清华源安装pytorch:
conda install pytorch
但是没有该源安装不了 torchvision cpuonly。
使用-c pytorch 安装torchvison和cpuonly
conda install torchvision cpuonly -c pytorch
安装后不行,报错:没有pillow version。