复制一个包#
将包从频道 conda-forge
复制到个人频道,例如 jsmith
:
anaconda copy conda-forge/glueviz/0.10.4 --to-owner jsmith
conda-forge/glueviz/0.10.4
是一个“规范”,可以匹配以下两种格式之一:
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
。