Conda environments keep project dependencies separate. conda env list lists known environments and their paths, with an asterisk marking the active environment. For installed packages, use the package list.
conda env list is an alias for conda info --envs, so both commands print the same table.
The name column is blank for prefix environments created at a path rather than under Conda's named environment directory. Use the path shown in the right column with --prefix or conda activate /path/to/env when that blank row is the environment you need.
Steps to list Conda environments:
- Open a terminal where Conda is available.
- List the registered Conda environments.
$ conda env list # conda environments: # # * -> active # + -> frozen base /opt/conda analytics * /opt/conda/envs/analytics /tmp/project-envThe asterisk marks the active environment. A blank name with a path, such as /tmp/project-env, is a prefix environment rather than a named environment.
conda env list --json gives machine-readable output for scripts.