在安装软件包时,我会看到以下UnavailableInvalidChannel错误:
conda install openai
Collecting package metadata: failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: pkgs/main
channel url: https://repo.anaconda.com/pkgs/main
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.现在我做到了:
conda config --show channels
channels:
- defaults我不明白为什么康达和pkgs/main分手了。没有这样的渠道。
也曾尝试过:
conda config --remove channels pkgs/main
CondaKeyError: 'channels': 'pkgs/main' is not in the 'channels' key of the config file发布于 2022-08-20 04:26:23
根据conda文档,这要么是互联网问题,要么是配置错误的.condarc文件。幸运的是,修复方法非常简单。
https://stackoverflow.com/questions/73423279
复制相似问题