如果在执行conda install和pip install安装外部包的时候网速特别慢,可以尝试使用清华大学或中科大提供的国内镜像。
官方指南:https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
-i https://mirror.baidu.com/pypi/simple
中科大的pip镜像
conda config --remove-key channels
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple