简体   繁体   English

如何从 Anaconda 更新/删除 conda-forge 频道?

[英]How update/remove conda-forge channel from Anaconda?

I want to install Orange3 through conda.我想通过 conda 安装 Orange3。 So I type in Anaconda Prompt所以我输入 Anaconda 提示符

conda config --add channels confa-forge

After that I try to install Orange3之后我尝试安装 Orange3

conda install orange3

But the Anaconda prompt show this error message但是 Anaconda 提示显示此错误消息

CondaHTTPEErroR: HTTP 404 NOT FOUND for url <https://conda.anaconda.org/confa-forge/noarch/repodata.json>

So I realize that I write confa -forge instead conda -forge.所以我意识到我写的是 confa -forge 而不是conda -forge。

How can I delete the channel confa-forge?如何删除频道 confa-forge? Or Can I update the channel to conda-forge?或者我可以将频道更新为 conda-forge 吗?

You can use: 您可以使用:

conda config --show channels

This will list your channels 这将列出您的频道

conda config --remove channels NOT_WANTED

This will remove the channel called NOT_WANTED(Assuming that it is part of your list eg your confa-forge) 这将删除名为NOT_WANTED的频道(假设它是您列表的一部分,例如您的confa-forge)

BTW, I will recommend --append channel insteading of --add adding them 顺便说一句,我会建议 - 添加--add添加它们的渠道

conda config --append channels CHANNEL_NAME

Why: If you do: 原因:如果你这样做:

conda config --add channels conda-forge 

This will make conda-forge first hit channel. 这将使conda-forge成为第一个热门频道。 Your anaconda's default channel will get lower priority. 您的anaconda的默认频道将获得较低的优先级。 Some of your packages will start updating to conda-forge. 你的一些软件包将开始更新为conda-forge。

Instead, do this: 相反,这样做:

conda config --append channels conda-forge

This keeps your default channel high in priority. 这会使您的默认频道保持高优先级。 Packages will be searched on your default before going to conda-forge :) 在进入conda-forge之前,将在默认情况下搜索包

Also you can also check 你也可以检查一下

http://conda-forge.org/docs/user/tipsandtricks.html#using-multiple-channels http://conda-forge.org/docs/user/tipsandtricks.html#using-multiple-channels

To see your channels' priorities $conda config --describe channel_priority 要查看频道的优先级,请参阅$conda config --describe channel_priority

You could change the.condarc file manually, as a last resort in case none of the other options work for you.您可以手动更改 .condarc 文件,作为万一其他选项都不适合您的最后手段。 Although this isn't recommended as any errors made while editing the file manually might be difficult to fix.尽管不建议这样做,因为手动编辑文件时出现的任何错误都可能难以修复。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 conda-forge 而不是 anaconda 通道安装“conda update --all”? - How to get "conda update --all" to install using conda-forge instead of anaconda channel? Anaconda-是否使用通道conda-forge破坏了整个环境? - Anaconda - is using channel conda-forge screwing up the whole environment? 如何完全清除和禁用 Anaconda 中的默认通道并切换到 conda-forge? - How do I completely purge and disable the default channel in Anaconda and switch to conda-forge? conda install --channel conda-forge pymatgen - conda install --channel conda-forge pymatgen 当上传者为“ conda-forge”时,更新conda-forge中的软件包 - Update package in conda-forge, when uploader is “conda-forge” 从 PyPi 到 Conda-Forge - From PyPi to Conda-Forge 什么是完整的conda-forge频道网址? - What is the full conda-forge channel url? PackagesNotFoundError:以下软件包在当前频道中不可用,添加 conda-forge 频道后? - PackagesNotFoundError: The following packages are not available from current channels, AFTER adding conda-forge channel? 使用诗歌从 conda-forge(例如 cartopy)安装预构建包,而不依赖 conda(仅使用通道) - Install prebuilt packages from conda-forge (e.g. cartopy) using poetry without relying on conda (using only the channel) 如何在 conda-forge(甚至我的个人 conda 频道)上使用 Poetry 开发的 Python 包? - How can I make a Python package developed with Poetry available on conda-forge (or even on my personal conda channel)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM