Python Notes31:Conda加速

Python Notes31:Conda加速

1. 添加清华镜像(源)

conda config --add channels [https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/](https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/) conda config --add channels [https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge](https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge) conda config --add channels [https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/](https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/) conda config --set show_channel_urls yes

2. 添加豆瓣镜像(源)

conda config --add channels [https://pypi.douban.com/anaconda/cloud/conda-forge/](https://pypi.douban.com/anaconda/cloud/conda-forge/) conda config --add channels [https://pypi.douban.com/anaconda/cloud/msys2/](https://pypi.douban.com/anaconda/cloud/msys2/) conda config --add channels [https://pypi.douban.com/anaconda/cloud/bioconda/](https://pypi.douban.com/anaconda/cloud/bioconda/) conda config --add channels [https://pypi.douban.com/anaconda/cloud/menpo/](https://pypi.douban.com/anaconda/cloud/menpo/) conda config --add channels [https://pypi.douban.com/anaconda/cloud/pytorch/](https://pypi.douban.com/anaconda/cloud/pytorch/) conda config --set show_channel_urls yes

3. 删除源

conda config --remove-key channels