anaconda连接仓库失败解决方法

anaconda连接仓库失败:CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2解决方法:

1.控制台输入以下命令连接国内镜像:

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
conda config --set show_channel_urls yes

2.找到

C:\Users\admin

目录下的

.condarc

删去-default这一行:

ssl_verify: false
channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
上一篇:安装anaconda配置tensorflow虚拟环境遇到的问题及解决办法


下一篇:Navigator Error An unexpected error occurred on Navigator start-up ‘bytes‘ object has no attribute ‘