conda 与 pip 加速

conda和pip默认使用国外站点来下载软件,我们可以配置国内镜像来加速下载(国外用户无须此操作)。

配置清华conda镜像,更多内容查看:清华大学开源软件镜像站:conda

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/main/

配置清华PyPI镜像(如无法运行,将pip版本升级到>=10.0.0)参考清华大学开源软件镜像站

pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
原文地址:https://www.cnblogs.com/q735613050/p/10546120.html