如何从Conda中删除频道(pypi.org)

2024-04-19 08:58:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在用Python和Conda制作一个面部识别程序,但它给出了一个错误

Collecting package metadata (current_repodata.json): ...working... failed


UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: None
channel url: https://pypi.org
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.

为什么我会看到这一点,如何解决


Tags: to程序viewconfigpackageyourisshow
1条回答
网友
1楼 · 发布于 2024-04-19 08:58:56

可以通过手动编辑用户级配置文件(如错误中所示,使用conda config show-sources查找它)或使用conda config命令来编辑频道,例如

conda config  remove channels 'https://pypi.org'

可能值得首先检查conda config show channels,以确保这正是需要删除的字符串

我还不清楚为什么一开始就要增加这样一个频道

相关问题 更多 >