conda换成清华镜像源

张彦鹏的博客 / 2023-06-21 / 原文

  • 恢复默认源
conda config --remove-key channels
  • 显示镜像源
conda config --show-sources

切换为清华镜像源

conda config --remove-key channels

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

conda config --set show_channel_urls yes