清华大学镜像安装pytorch1.4

1.添加清华通道

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

conda config --set show_channel_urls yes

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

2.去pytorch官网下载指定版本的pytorch

conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
这是我的。

3.为conda添加权限

chmod 775 ./.conda

4.执行第二部的命令,但是要去掉 -c pytorch,这个参数指定了下载通道为官网。