Linux使用中科大源

中科大镜像官方网站
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那一行,并保存

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容