One way to solve the slow problem of using conda to install cudnn

Use the domestic mirror to speed up the installation of cudnn=7.6.5 by Conda. You can follow the steps below:

Open a terminal or command prompt.

Configure the image source of Conda as a domestic image. You can use the mirror source of Tsinghua University or the mirror source of University of Science and Technology of China. Two methods are given below:

a. Use Tsinghua University mirror source: terminal input

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

insert image description here

b. Use the USTC image source:

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

Select one of the image sources to configure.

Use the modified command to install cudnn=7.6.5:

conda install cudnn=7.6.5 -y

Conda will use domestic mirror sources to download and install cudnn=7.6.5.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_41194129/article/details/130979805