anaconda无法安装图形化界面,出现HTTP000 error

1,出现error
ndaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/a
conda/win-64/current_repodata.json>
apsed: -

方法一:
首先执行如下几条命令更换清华镜像源

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

3.2.更改镜像源配置文件

在用户根目录(C:\Users\用户名)下找到.condarc文件,打开并并编辑,删除其中的default配置行。

原文链接:https://blog.csdn.net/weixin_36670529/article/details/103838665

如果方法一未解决:
进入”C:\Users\Administrator“,打开“.condarc“,你将会看到以下代码:

ssl_verify: true
show_channel_urls: true

channels:

  • httpn://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
    将上述代码更改为

ssl_verify: true
show_channel_urls: true

channels:

  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
    你也可能会在channels:下面看到 ”- default“,请删除它

5、修改完毕,再次执行”conda create -n scrapyEnv python=3.6”,涛声依旧啊!

6、继续翻阅网站,有网友说“一定要是http而不能为https!”,于是尝试修改一下,

ssl_verify: true
show_channel_urls: true

channels:

  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
    再次执行”conda create -n scrapyEnv python=3.6”,成功啦!!!

7、根据在https://mirror.tuna.tsinghua.edu.cn/help/anaconda/上内容,最终的".condarc"为

ssl_verify: true
show_channel_urls: true

channels:

  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/

方法3;
下载一个openssl

如果安装成功了anaconda navigator 还是无法打开
建议安装PyQt5
pip install PyQt5 -i https://pypi.douban.com/simple

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值