pip更换国内源
跳转到指定路径
cd ~/.config
mkdir pip
cd pip
创建并编辑配置文件
gedit pip.conf
内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
conda更换国内源
命令行直接输入(清华源)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
修改配置文件
gedit ~/.condarc
删除default,最终的文件形式如下
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
参考资料
pip、conda 换国内源,大大提高下载速度blog.csdn.net