Windows 下 Conda install 安装出现HTTP 000 CONNECTION... 解决方案

在使用Conda install 安装库的时候出现以下错误
Windows 下 Conda install 安装出现HTTP 000 CONNECTION... 解决方案

原因是使用的是国外的镜像,切换至国内镜像就可以解决啦

在cmd 中输入下面命令

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --set show_channel_urls yes

此时在C:\Users\电脑名下会生成一个.condarc的文件
用记事本打开
Windows 下 Conda install 安装出现HTTP 000 CONNECTION... 解决方案
将defaults哪一行全部删掉
Windows 下 Conda install 安装出现HTTP 000 CONNECTION... 解决方案
此时在执行conda install 命令就ok了