1 annoconda download
File address list, select the version to download https://repo.anaconda.com/archive/ win10 version: Anaconda3-2023.03-1-Windows-x86_64
Linux version: Anaconda3-2023.03-1-Linux-x86_64
Execute exe under win10 to install according to the wizard, under linux ./Anaconda3-2023.03-1-Linux-x86_64.sh
2 conda common command configuration
(1) Display the current mirror source
conda config --show-sources
(2) Display search address when setting search
conda config --set show_channel_urls yes
(3) Create a conda environment
conda create -n env_name python==3.9
(4) Activate the conda environment
conda activate env_name
(5) Delete the specified conda environment
conda remove -n env_name -all
3 Add a new mirror source to speed up software download
(1) Install pip under conda
conda install pip
(2) Add Tsinghua mirror source:
conda config --add channels https://pypi.tuna.tsinghua.edu.cn/simple
You can also add several other mirror sources:
#豆瓣源
conda config --add channels http://pypi.douban.com/simple/
# 阿里源
conda config --add channels https://mirrors.aliyun.com/pypi/simple/
#中科大源
conda config --add channels https://pypi.mirrors.ustc.edu.cn/simple/
(3) Designate specific software to download from a specific mirror source
pip install numpy -i https://mirrors.aliyun.com/pypi/simple/
(4) Delete the specified mirror source
conda config --remove channels https://pypi.mirrors.ustc.edu.cn/simple/
4 Solve the problem of "UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel"
conda config --remove-key channels
After the execution is complete, continue to execute the conda command, and it can be successfully executed