本文共 1301 字,大约阅读时间需要 4 分钟。
中科大源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
清华源
清华源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forgeconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/conda config --set show_channel_urls true
设置搜索时显示通道地址
conda config --set show_channel_urls trueconda upgrade --allconda config --remove-key channelsconda config --show-sourcesconda config --set show_channel_urls: true
# 先更新conda到最新版conda update conda# 再更新anaconda到最新版conda update anaconda# 这时候base(基础)环境就会被升级到最新版# 只升级pythonconda update python# base升级完以后,再升级其他环境:# 1先切换到其他环境activate 环境名# 2然后执行下面的命令,就可以把创建的环境升级到最新版了conda update --all
conda clean -i# 如果要设置搜索时显示通道地址,在prompt中执行下面的命令conda config --set show_channel_urls yes# 恢复默认源conda config --remove-key channels
转载地址:http://zpcki.baihongyu.com/