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'
如图所示,报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url
解决办法
找到用户目录.condarc文件
打开用户目录步骤 win+R→输入 %HOMEPATH% 或者附件→命令提示符
使用记事本打开,将内容替换如下(注意备份源文件)
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 安装即可
评论前必须 ☞☞ 登录/注册 !