利用清华镜像 https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
我下载了anaconda,然后想新创建一个环境,
当我新建一个环境的时候
按图形界面指示,点击create,准备创建,然后就会返回报错:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/r/osx-64/current_repodata.json><br>Elapsed: -<br><br>An HTTP error occurred when trying to retrieve this URL.<br>HTTP errors are often intermittent, and a simple retry will get you on your way.<br><br>If your current network has https://www.anaconda.com blocked, please file<br>a support request with your network engineering team.<br><br>'https://repo.anaconda.com/pkgs/r/osx-64'<br>
处理方法如下:
1. 首先执行如下几条命令更换清华镜像源
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/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
2.更改镜像源配置文件
直接在apple下搜索文件condarc,找到它,在我的电脑里他的具体位置如下(如果你也是一直默认安装那应该和我一样)
然后,打开这个condarc文件,尽行如下修改:
然后就结束了,重新再次create一下环境就可以成功了!
参考并感谢大佬博客!
参考链接:大佬博客