conda安装的国内镜像配置,实现快速下载

conda安装的国内镜像配置,实现快速下载 anaconda的所有的软件包全部在国外,安装起来很麻烦,关键是下载速度慢,而且经常中断,所以需要配置国内安装的镜像,下载速度就很快了。 一、conda换国内源 1.1 查看源 命令 conda config --show-sources 显示结果 ==> /home/xxx/.condarc <== channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - defaults 这里有两个源,一个是清华的源,另一个是默认的源 1.2 添加源(这里以添加清华源为例,当然也可以选择其他的源) 命令 conda config --add channels 操作: #添加清华的源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 运行成果后,使用显示源查看是否添加成功(conda config --show-sources) 1.3 其他可选的源(还有更多的可以网上搜索,这里不一一列举) 中科大的源 conda config –add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 阿里云的源 conda config --add channels http://mirrors.aliyun.com/pypi/simple/ 1.4 移除源 命令 conda config --remove channels 操作 conda config --remove channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/' > 本文由博客一文多发平台 [OpenWrite](https://openwrite.cn?from=article_bottom) 发布!

猜你喜欢

转载自www.cnblogs.com/flyfor2013/p/11804537.html