当前位置:网站首页>Anaconda configuring the mirror source

Anaconda configuring the mirror source

2022-06-13 05:17:00 Ape code_ xiao

Anaconda Image usage help
Anaconda It's a scientific calculation Python Distribution version , Support Linux, Mac, Windows, It contains many popular scientific calculations 、 Data analysis Python package .

Anaconda The installation package can go to https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ download .

TUNA It also provides Anaconda Warehouse and third party sources (conda-forge、msys2、pytorch etc. , Check out the full list ) Mirror image , Each system can modify the user directory .condarc file .Windows The user cannot directly create a file named .condarc The file of , You can do it first conda config --set show_channel_urls yes After generating the file, modify .

notes : Because the update is too fast to synchronize , We're out of sync pytorch-nightly, pytorch-nightly-cpu, ignite-nightly These three bags .

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

You can add Anaconda Python Free warehouse .

function conda clean -i Clear index cache , Make sure you use the index provided by the mirror station .

function conda create -n myenv numpy Test it .

Miniconda Image usage help
Miniconda It's a Anaconda A lightweight alternative to , The default only includes python and conda, But it can go through pip and conda To install the required packages .

Miniconda The installation package can go to https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ download .

Other three sources
about conda The other three sources of , If necessary, please modify anaconda.py file , And submit pull request, We will consider many factors to increase or decrease .

原网站

版权声明
本文为[Ape code_ xiao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280514339653.html