Bootstrap

【python】【conda】【Commands 命令5】【conda install】在指定的conda环境中安装一组软件包

目录

1 conda install

2 Positional Arguments 位置参数

3 Named Arguments 命名参数

4 Target Environment Specification

4 目标环境规范编号

5 Channel Customization

5 渠道定制

6 Solver Mode Modifiers

6 求解器模式修改器

7 Package Linking and Install-time Options

7 软件包链接和安装时选项

8 Networking Options 网络选项

9 Output, Prompt, and Flow Control Options

9 输出、提示和流控制选项

10 Examples: 示例如下:

1 conda install

Install a list of packages into a specified conda environment.
指定的conda环境中安装一组软件包

This command accepts a list of package specifications (e.g, bitarray=0.8) and installs a set of packages consistent with those specifications and compatible with the underlying environment. If full compatibility cannot be assured, an error is reported and the environment is not changed.
这个命令接受一个包规范列表(例如,bitarray=0.8),并安装一组与这些规范一致并与底层环境兼容的包。如果不能保证完全兼容,则会报告错误,并且不会更改环境。

Conda attempts to install the newest versions of the requested packages. To accomplish this, it may update some packages that are already installed, or install additional packages. To prevent existing packages from updating, use the --freeze-installed option. This may force conda to install older versions of the requested packages, and it does not prevent additional dependency packages from being installed.
Conda尝试安装所请求软件包的最新版本。要完成此操作,它可能会更新一些已经安装的软件包,或安装其他软件包。要防止现有软件包更新,请使用--freeze-installed选项。这可能会强制conda安装所请求的软件包的旧版本,并且不会阻止安装其他依赖软件包。

If you wish to skip dependency checking altogether, use the '--no-deps' option. This may result in an environment with incompatible packages, so this option must be used with great caution.
如果你想完全跳过依赖项检查,使用'--no-deps'选项。这可能导致环境中存在不兼容的软件包,因此必须非常谨慎地使用此选项。

conda can also be called with a list of explicit conda package filenames (e.g. ./lxml-3.2.0-py27_0.tar.bz2). Using conda in this mode implies the --no-deps option, and should likewise be used with great caution. Explicit filenames and package specifications cannot be mixed in a single command.
conda也可以通过一系列显式的conda包文件名(例如./ lxml-3.2.0-py27_0.tar.bz2)。在这种模式下使用conda意味着--no-deps选项,同样应该非常谨慎地使用。不能在单个命令中混合使用显式文件名和包规范。

usage: conda install [-h] [--revision REVISION] [-n ENVIRONMENT | -p PATH]
                     [-c CHANNEL] [--use-local] [--override-channels]
                     [--repodata-fn REPODATA_FNS] [--experimental {jlap,lock}]
                     [--no-lock] [--repodata-use-zst | --no-repodata-use-zst]
                     [--strict-channel-priority] [--no-channel-priority]
                     [--no-deps | --only-deps] [--no-pin] [--copy]
                     [--no-shortcuts] [--shortcuts-only SHORTCUTS_ONLY] [-C]
                     [-k] [--offline] [--json] [-v] [-q] [-d] [-y]
                     [--download-only] [--show-channel-urls] [--file FILE]
                     [--solver {classic}] [--force-reinstall]
                     [--freeze-installed | --update-deps | -S | --update-all | --update-specs]
                     [-m] [--clobber] [--dev]
                     [package_spec ...]
usage: conda install [-h] [--revision REVISION] [-n ENVIRONMENT | -p PATH]
                     [-c CHANNEL] [--use-local] 
;