CondaHTTPError: HTTP 000 CONNECTION FAILED

新安装了conda,发现conda install的时候总是显示

CondaHTTPError: HTTP 000 CONNECTION FAILED

打开condarc

vim ~/.condarc

发现是.condarc 下的镜像多了一个default

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - defaults
show_channel_urls: true

删除-defaults

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
show_channel_urls: true

wq! 保存退出
退出重新登陆conda即可

你可能感兴趣的:(CondaHTTPError: HTTP 000 CONNECTION FAILED)