命令#

Commands

conda 命令是管理各类软件包安装的主要接口。它可以:

  • 查询并搜索 Anaconda 软件包索引以及当前的 Anaconda 安装内容;

  • 创建新的 conda 环境;

  • 在已有 conda 环境中安装和更新软件包。

小技巧

许多常用的命令选项在命令行中可以简写,将双短横(--)开头的选项简写为单短横加选项首字母即可。例如 --name--envs 可分别简写为 -n-e

要查看各命令的完整用法(包括缩写形式),请参阅 命令文档。也可以在命令行中 查看帮助信息

The conda command is the primary interface for managing installations of various packages. It can:

  • Query and search the Anaconda package index and current Anaconda installation.

  • Create new conda environments.

  • Install and update packages into existing conda environments.

小技巧

You can abbreviate many frequently used command options that are preceded by 2 dashes (--) to just 1 dash and the first letter of the option. So --name and --envs can be written as -n and -e respectively.

For full usage of each command, including abbreviations, see commands. You can see the same information at the command line by viewing the command-line help.