conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/menpo/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/msys2/
# 验证是否成功设置阿里云镜像
conda config --set show_channel_urls yes
# 设置阿里云镜像
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 验证是否成功设置了阿里云的镜像
pip config list
网友评论