安装anaconda后使用出现如下报错:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.continuum.io/pkgs/main/win-64/repodata.json.bz2
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectTimeout(MaxRetryError(“HTTPSConnectionPool(host=‘repo.continuum.io’, port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x00000247EB8CC1D0>, ‘Connection to repo.continuum.io timed out. (connect timeout=9.15)’))”,),)
1.一顿胡乱搜素修改后,按照博客https://blog.csdn.net/ling_xiobai/article/details/78659981配置清华镜像:依次输入四条指令
D:\Anaconda3\Scripts>cconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
D:\Anaconda3\Scripts>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
D:\Anaconda3\Scripts>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
D:\Anaconda3\Scripts>>conda config --set show_channel_urls yes
然后,然后还是没有用。
2.于是又是一顿搜索,尝试把C盘下的.condarc文件做如下修改:![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/cb4091f55517d7585c431e5ea4bfc39f.png)
![把defaults注释掉](https://i-blog.csdnimg.cn/blog_migrate/0cfc069950807c7eb1a52759962a0b8d.png)
emmmmm…还是报同样的错。
3.突然想起安装后忘记配置环境变量,于是屁颠屁颠地去配置变量:
结果还是报错。