如果在执行conda install 或 pip install 安装包时速度过慢,可以更换为国内镜像来提高速度。
国内镜像优先推荐中科大,清华大学镜像也许因为访问人数过多,不是特别稳定。
以下列出中科大镜像:
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
conda激活后直接复制即可!