Linux使用中科大源

2018-03-04  本文已影响0人  山有木紫

中科大镜像官方网站
http://mirrors.ustc.edu.cn/

pip的使用方法

http://mirrors.ustc.edu.cn/help/pypi.html?highlight=pip
修改 ~/.pip/pip.conf
内容为:
[global]
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple

easy_install 使用方法

修改~/.pydistutils.cfg
内容为:
[easy_install]
index_url = https://mirrors.ustc.edu.cn/pypi/web/simple

anaconda使用方法

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

然后
vim ~/.condarc
删除-default那一行,并保存

上一篇 下一篇

猜你喜欢

热点阅读