"conda env" 记录在哪里?

Where is "conda env" documented?

我想知道为什么 conda 的官方文档没有提到命令 conda env?

这让我想知道是否可以使用 here 列出的命令执行 conda env 的每个操作,以及建议在实践中使用哪一个。现在我假设 conda env 创建了一种简单的方法来操纵和使用 conda 环境。

conda env 命令没有类似记录的原因是历史原因。

即,在开发 conda 之后,其他人随后开发了 an add-on package called conda-env that provided some convenience methods for operating on whole environments rather than package operations within environments. Eventually, the conda-env package was integrated directly into the conda package, but apparently there was never any systematic effort to unify the documentation. Instead, most of the high-level documentation on using conda env commands is found under the "Managing environments" section 的 Conda 文档。

作为最终用户,我通常使用 conda env 创建(从 YAML)、archiving/serializing(到 YAML)和删除整个环境。

更直接地说,conda env 的文档参考

$ conda env --help
usage: conda-env [-h] {create,export,list,remove,update,config} ...

positional arguments:
  {create,export,list,remove,update,config}
    create              Create an environment based on an environment file
    export              Export a given environment
    list                List the Conda environments
    remove              Remove an environment
    update              Update the current environment based on environment file
    config              Configure a conda environment

optional arguments:
  -h, --help            Show this help message and exit.

和单个子命令的文档可以类似地参考 conda env <subcommand> --help