# 安装时指定
pip install $pkg -i https://mirrors.aliyun.com/pypi/simple
# 设置源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set install.trusted-host mirrors.aliyun.com
# 删除源
pip config unset global.index-url
pip config unset install.trusted-host
# 安装时指定(推荐)
conda install $pkg -c $channel
# 添加源
conda config --set show_channel_urls yes # 执行一次
conda config --add channels $channel
# 删除源
conda config --remove channels $channel
# 清华源
# main
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
# special
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/