anaconda安装报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url

anaconda安装报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url

报错内容

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/win-64'

 

anaconda安装报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url-大江博客

如图所示,报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url

解决办法

找到用户目录.condarc文件
打开用户目录步骤  win+R→输入  %HOMEPATH%  或者附件→命令提示符
anaconda安装报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url-大江博客使用记事本打开,将内容替换如下(注意备份源文件)

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

重新运行 conda install scrapy 安装即可

 

未经作者允许不得转载:大江博客 » anaconda安装报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url
博主微信:欢迎加微一起交流
欢迎加微一起交流,每天分享更多有趣的事儿,有趣有料!
2000人已加
分享到:
赞(0)

说点啥吧抢沙发

评论前必须 ☞☞ 登录/注册 !