首页 > 解决方案 > 更改用户名后无法在 OS Catalina 上安装 anaconda

问题描述

我将我的操作系统升级到 Catalina,然后 anaconda 无法工作,所以我删除了它并想再次安装它。

但是,我的 macOS 用户名是zoyie 1,其中包含一个空格,导致安装失败。

然后我把我的用户名从zoyie 1更改为ZongyuWu并再次安装。

64 位图形安装程序仍然无法工作并且没有给我任何错误信息,所以我尝试了 64 位命令行安装程序并得到

Collecting package metadata (current_repodata.json): failed

UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: Downloads
  channel url: file:///Users/zoyie 1/Downloads
  error code: 404

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

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. Use `conda index /Users/zoyie 1/Downloads`, or create `noarch/repodata.json`
and associated `noarch/repodata.json.bz2`.

有人知道如何在我的 Mac 上安装 anaconda 吗?

因为我还没有安装 anaconda,所以我不能使用 conda。

我找不到 ~/.condarac,因为我还没有安装 anaconda。

删除 ~/.bash_profile 中有关 conda 的行是没有用的。

尝试安装 miniconda 时出现同样的问题。

标签: pythonanacondainstallationmacos-catalina

解决方案


推荐阅读