← 返回命令列表

Linux command

conda-init 命令

文本

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

常用示例

Initialize conda

conda init

Initialize for specific shell

conda init [bash|zsh|fish|powershell]

Initialize for all shells

conda init --all

Reverse initialization

conda init --reverse

说明

conda init sets up shell integration for conda, modifying shell configuration files to enable the conda activate command and automatic base environment activation. This must be run once after conda installation for full functionality.

参数

--all
Initialize for all available shells.
--reverse
Undo shell initialization.
-d, --dry-run
Show what would be done without making changes.

FAQ

What is the conda-init command used for?

conda init sets up shell integration for conda, modifying shell configuration files to enable the conda activate command and automatic base environment activation. This must be run once after conda installation for full functionality.

How do I run a basic conda-init example?

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

What does --all do in conda-init?

Initialize for all available shells.