Anaconda Add Tsinghua source and restore the default source

1, the source added Qinghua

The official view mirror source document Tsinghua University: https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

Based on the Windows platform, first with the command:  Conda config --set show_channel_urls yes

Generate .condarc file, and then locate the file and modify.

Find the file: ① recommend a windows tool Everything ② quickly search for files using the command: Conda config --show-Sources to find the location of the configuration file

Modify the configuration file as follows:

channels:
  - defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

2, restore the default source:

.Condarc delete files.

 

Guess you like

Origin www.cnblogs.com/pear-linzhu/p/12301423.html