Set up Anaconda mirror source

Background: Ubuntu22.04+Anaconda3. After setting the Anaconda mirror source, the speed of installing things with conda will become faster.

1)Official address:

anaconda | Mirror site usage help | Tsinghua University open source software mirror site | Tsinghua Open Source Mirror

Just follow the step-by-step instructions from the official address.

2) General steps:

1. Create a .condarc file (you can also create it directly using the vim command, vim .condarc) 

2. Add the following image source to the .condarc file and save it.

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - 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
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

3. Run conda clean -i to clear the index cache and ensure that the index provided by the mirror station is used.

conda clean -i

reference:

anaconda | Mirror site usage help | Tsinghua University open source software mirror site | Tsinghua Open Source Mirror

Replace the python source and anaconda source_anaconda python source_Sunflower's little mung bean blog-CSDN blog

Guess you like

Origin blog.csdn.net/weixin_39450145/article/details/130654757