添加清華anaconda鏡像:
.condarc 文件(在home/用戶名/下),刪除里面的 defaults
pytorch
conda-forge
msys2
bioconda
menpo
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
最好使用指定源的方式安裝:conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ pytorch torchvision cudatoolkit=10.2 -c pytorch