anaconda 清华源_pip和conda更换国内源(ubuntu)

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
ubuntu更换安装源和pip镜像源_wssywh的博客-CSDN博客_ubuntu更换pip源​blog.csdn.net

你可能感兴趣的:(anaconda,清华源,anaconda清华源,conda,清华源,conda,源,conda换清华源,conda清华源)