[英]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.