Windows下有什么办法提高conda install的速度?

安装个包实在是太慢了,只有10K左右的速度,有没有什么方法?
关注者
79
被浏览
98,905

15 个回答

1 添加清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

(想要删除清华源把add改成remove就行。)

2 显示URL

conda config --set show_channel_urls yes

3 除了清华源,也可以使用别的答案里的科大源,华东/华中地区可能会更快一些。

除了添加 清华的 Index of /anaconda/pkgs/free/ 之外,还要添加一个Index of /anaconda/cloud/conda-forge/ ,否则有大量的软件还得去 conda-forge 去下载,之前我就是只添加了一个,结果,自己就怀疑是不是走错了 python 的人生道路了,查看 vim ~/.condarc 看起来是这样的: