Conda
Preparation (Mandatory)
To ensure stable resolution of the package mirror, ensure the hosts file is configured with correct domain name resolution before configuration. If not added, add the following content to the /etc/hosts file before configuring the package mirror.
cat >> /etc/hosts << EOF
10.251.102.1 mirrors.shanhe.com
EOF
Download and Install
For Miniconda installation, refer to the official documentation.
Please ensure miniconda is installed in the user's home directory.
Anaconda Package Mirror Usage Guide
conda config --add channels https://mirrors.shanhe.com/anaconda/pkgs/free/
conda config --add channels https://mirrors.shanhe.com/anaconda/pkgs/main/
conda config --add channels https://mirrors.shanhe.com/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
conda config --remove channels defaults