anconda官方文档
1.windows 下, conda源操作/增、减、重置、换源
各版本Anaconda安装包集合。https://repo.anaconda.com/archive/
查看当前的源
conda config --show-source
添加指定的源
conda config --add channels 源名称或链接
例如
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
删除指定源
conda config --remove channels 源名称或链接
恢复默认源
conda config --remove-key channels
清华源(TUNA)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
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-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --add channels https://pypi.tuna.tsinghua.edu.cn/simple/
豆瓣源
豆瓣源的带宽对国内用比较友好,所以常用豆瓣源安装或更新第三方库
conda config --add channels http://pypi.doubanio.com/simple/
pip install -i http://pypi.douban.com/simple/ tensorflow --trusted-host pypi.douban.com
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com tensorflow
pip install -i http://pypi.douban.com/simple/ tensorflow-gpu==2.1.0 --trusted-host pypi.douban.com
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com tensorflow-gpu==2.1.0
pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/