Anaconda 換國內源、刪源命令

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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章