复制软件包#
要将软件包从 conda-forge
频道复制到个人频道(如 jsmith
)
anaconda copy conda-forge/glueviz/0.10.4 --to-owner jsmith
conda-forge/glueviz/0.10.4
是一个“spec”,可以匹配以下两种格式之一:user/package/version
或 user/package/version/filename
。
如果用户 jsmith
已存在软件包 glueviz/0.10.4
,您将收到以下错误消息:File conflict while copying!
。 如果您仍然想复制软件包,请尝试使用 --replace
或 --update
选项。 使用 replace
选项允许您覆盖已存在的软件包。 使用 update
选项允许您向现有软件包添加缺失的元数据。
已弃用的选项#
以前标签被称为“频道”,并且 anaconda copy
命令具有已弃用的选项 from-channel
和 to-channel
,这些选项期望对标签进行操作。
不应使用这些已弃用的选项。
如果您尝试在诸如 anaconda copy --from-channel conda-forge --to-channel jsmith glueviz
的命令中使用它们,您将收到错误消息 Label conda-forge does not exist
。