conda-activate
activate a conda environment
TLDR
Activate an environment
SYNOPSIS
conda activate [envname|path_]
DESCRIPTION
conda activate switches the current shell session to use a specified conda environment, modifying the PATH environment variable and other shell variables to prioritize that environment's binaries, libraries, and packages. This is the primary mechanism for working with isolated conda environments.
When an environment is activated, the shell prompt is typically modified to show the active environment name in parentheses, providing a visual indicator of which environment is currently in use. The activation process prepends the environment's bin directory to PATH, sets environment-specific variables like CONDAPREFIX and CONDADEFAULT_ENV, and may execute activation scripts included with certain packages.
Conda environments can be activated by name (if stored in the default envs directory) or by full path to the environment directory. The base environment is conda's root environment and is activated by default unless autoactivatebase is disabled in conda configuration. Shell integration must be initialized via conda init for activation to work properly in bash, zsh, fish, or PowerShell.
CAVEATS
Requires conda init to have been run for shell integration. Some shells may need sourcing the activation script manually.
SEE ALSO
conda(1), conda-deactivate(1), conda-create(1)
