pip换成清华源
新建配置文件
mkdir ~/.pip && cd ~/.pip
vim pip.conf
添加以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
conda换成清华源
进入conda activate xxx下
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes