
conda list environments – How to view all the virtual environments present in conda?
In this one, let's see how to view a list of all virtual environments in conda. Conda is a popular package management system that allows you to create isolated environments .
conda is a popular package management system that allows you to create isolated environments with different versions of packages and dependencies. In this one, let’s see how to view a list of all virtual environments in conda.
How to list all the virtual Environments?
Earlier you saw everything about creating conda environments.
If you want to list all the environments you have created with conda, you can use the following command:
conda env list
Output:
base * C:\Users\selva\anaconda3 mlcourse C:\Users\selva\anaconda3\envs\mlcourse mlenv C:\Users\selva\anaconda3\envs\mlenv mlenv2 C:\Users\selva\anaconda3\envs\mlenv2
This command lists all the environments and their paths. The `*` sign indicates the current active environment.
Alternate syntax to view the list of environments
Alternately, you can use the following command:
conda info --envs
Here’s a full example:
# List all the environments conda env list # alternate syntax conda info --envs
You should see a list of all the environments you have created with conda, along with their paths.
Free Course
Master Core Python — Your First Step into AI/ML
Build a strong Python foundation with hands-on exercises designed for aspiring Data Scientists and AI/ML Engineers.
Start Free Course →Trusted by 50,000+ learners
Related Course
Master Deployment — Hands-On
Join 5,000+ students at edu.machinelearningplus.com
Explore Course
