Tsinghua image installation pytorch1.4

1. Add Tsinghua channel

config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ Conda
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. go pytorch official website to download the specified version of pytorch

conda install pytorch torchvision cudatoolkit = 10.1 -c pytorch 
this is mine.

3. To add permissions conda

chmod 775 ./.conda

4. performing a second portion of the command, but to remove -c pytorch, this parameter specifies the download channel official network.

Guess you like

Origin www.cnblogs.com/kevin-lee123/p/12323008.html