← 返回命令列表

Linux command

conda-install 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install a package

conda install [package_name]

Install specific version

conda install [package_name]=[version]

Install from specific channel

conda install -c [conda-forge] [package_name]

Install into specific environment

conda install -n [env_name] [package_name]

Install multiple packages

conda install [package1] [package2] [package3]

Install without confirmation

conda install -y [package_name]

说明

conda install installs packages into a conda environment. It resolves dependencies and ensures compatibility between packages. Packages are searched in configured channels, with defaults searched first unless a specific channel is specified.

参数

-n, --name _name_
Install into named environment.
-c, --channel _channel_
Additional channel to search.
-y, --yes
Don't ask for confirmation.
--freeze-installed
Don't update already-installed packages.
--update-deps
Update dependencies.

FAQ

What is the conda-install command used for?

conda install installs packages into a conda environment. It resolves dependencies and ensures compatibility between packages. Packages are searched in configured channels, with defaults searched first unless a specific channel is specified.

How do I run a basic conda-install example?

Run `conda install [package_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n, --name _name_ do in conda-install?

Install into named environment.