To list your conda environments, you can use the following command:
conda env list
This will list all of the conda environments that are installed on your system, along with the path to each environment. The active environment will be marked with an asterisk (*).
For example, the following output shows a list of three conda environments, with the environment named myenv
being the active environment:
conda environments:
* base /home/user/miniconda/envs/base
myenv /home/user/miniconda/envs/myenv
another_env /home/user/miniconda/envs/another_env
To list the packages that are installed in a specific conda environment, you can use the following command:
conda list -n <environment_name>
For example, to list the packages that are installed in the myenv
environment, you would use the following command:
conda list -n myenv
This will produce a list of all of the packages that are installed in the myenv
environment, along with their versions.
You can also use the conda info
command to get more information about your conda environments. For example, to get information about the active conda environment, you would use the following command:
conda info --envs
This will produce output that includes the name, path, and dependencies of the active conda environment.