1.查看镜像源
conda config --show channels
2.添加镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
# 显示安装包下载地址
conda config --set show_channel_urls yes
链接:https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
3.pip配置镜像源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
其他源
# 清华
https://pypi.tuna.tsinghua.edu.cn/simple
# 阿里
https://mirrors.aliyun.com/pypi/simple/
# 豆瓣
https://pypi.douban.com/simple/
# 中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/