安装Anaconda遇到的问题

安装Anaconda:

安装基本没有问题,安装成功后发现Anaconda Navigator打不开。

1. conda CondaHTTPError: HTTP 404 NOT FOUND for url:

Anaconda Prompt显示:

CondaHTTPError: HTTP 404 NOT FOUND for url <http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/free/noarch/repodata.json>
Elapsed: 00:00.088945

The remote server could not find the noarch directory for the
requested channel with url: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/free

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. please request that the channel administrator create
`noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state.
Further configuration help can be found at <https://conda.io/docs/config.html>.
        }

解决方案:

conda config --show-sources #查看当前使用源

conda config --remove-key channels #换回默认源

失败的方法:

添加中科大源



conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

conda config --set show_channel_urls yes
  

找到了原因:
2019-4-29 update: 由于anaconda授权问题,清华源即将关闭
笔者是在5-25进行安装,所以是清华源挂掉了的原因
换回默认源:
conda config --remove-key channels #换回默认源


原文链接:https://blog.csdn.net/weixin_41738030/article/details/90545071

2. 如何彻底卸载Anaconda

1. solution A

通常卸载软件,直接运行uninstall就可以了,对于anaconda也一样,可以直接运行安装目录下的 Uninstall-Anaconda3.exe 即可,但是这样卸载并没有完全卸载。如果需要完全卸载请参考 Solution B

2. Solution B

通过B方式卸载,请确保还没有通过A方式进行卸载。

1.安装 Anaconda-Clean package
打开 Anaconda Prompt, 输入如下命令:

conda install anaconda-clean

2.输入如下命令卸载

anaconda-clean --yes

原文链接:https://blog.csdn.net/kuweicai/article/details/90145242

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值