![Forrest logo](/images/logo.png)
conda:tldr:f53b7
The command "conda info --envs" is used to display information about the available environments in Conda.
In Conda, environments are isolated spaces that allow you to manage and install specific versions of software packages without interfering with each other. These environments can have different and separate sets of packages, which can be useful when working on different projects or if you need to maintain different versions of packages for different purposes.
With the "conda info --envs" command, Conda will provide a list of all the available environments on your system. This list will include the name of each environment, along with the location or path where it is stored in your file system.
The output of the command might look something like this:
conda environments:
# base * /opt/conda env1 /opt/conda/envs/env1 env2 /opt/conda/envs/env2
In the above example, the "base" environment is the default environment created by Conda during installation, and the "(*)" symbol indicates that it's the currently active environment. The other environments listed, "env1" and "env2," are additional environments that have been created.
Knowing the available environments can be useful when you want to activate or switch between environments using the "conda activate" command, or when you need to install specific packages into a particular environment.