2019.07.24更新
感谢博友魔法师旋律提醒,清华已经恢复Anaconda相关镜像,通知如下。
1.背景
Ubuntu16.04,安装了Anaconda便于环境管理,但是国外源下载安装太慢,所以计划更换为国内源。
可但是,现在才知道清华和中科大的源,已经被停止维护了。
暂且,将命令记录在此吧。
2.命令
(1)添加清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
#设置搜索时显示通道地址
conda config --set show_channel_urls yes
(2)添加中科大源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
(3)查看
#看看当前的 cofig 是什么样的
conda config --show
#查看添加的镜像:
conda config --get channels
(4)删除源
conda config --remove-key channels
3.附录:
阿里云 https://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/