我无法修复 UnavailableInvalidChannel 错误

问题描述 投票:0回答:1

我正在尝试在 Anaconda Navigator 中创建一个环境,但我不断遇到此错误。

UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: gurobii
channel url: http://conda.anaconda.org/gurobii
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.

当我运行 --showchannels 时我得到:

channels:

- conda-forge
- http://conda.anaconda.org/gurobii
- http://conda.anaconda.org/gurobi
- defaults

我已经尝试过:

conda config --remove-key default_channels

它不会工作,因为我不断收到 CondaKeyError。

CondaKeyError: 'default_channels': key 'default_channels' is not in the config file

有谁知道为什么会发生这种情况以及如何重新配置我的 Anaconda?

anaconda gurobi conda-forge
1个回答
0
投票

我也面临着同样的问题。我正在使用以下代码来修复它。希望它能有所帮助。

conda config --remove-key 通道 conda config --append 频道 conda-forge --append 频道 bioconda --append 频道默认值

© www.soinside.com 2019 - 2024. All rights reserved.