'List down all python virtual environment created
I need to check if there is any virtual environment is present or not in the path C:\Program Files\Python3, but I want to perform this with the help of command prompt in windows and not through anaconda prompt or jupyter notebook. There were some packages installed in virtual Environment but I might not aware of, so for this reason I need to list down all the virtual environment created in the past days. I just need a way to check, or some code to type in cmd which will help me to list down. If there is any way then please help.
Solution 1:[1]
you can enter in your cmd the command set Path
you can see all your paths including the python ones
you can also look at py -0 to see all your version of python that installed
>py -0
Installed Pythons found by py Launcher for Windows
-3.10-64 *
Solution 2:[2]
On windows, there is a file typicaly located at : C:\Users\Bill\.conda\environments.txt with the list of all environnements
Solution 3:[3]
If using anaconda prompt, you can simply execute:
conda info --env
and it will list down all the environments. However, you can navigate to the directory of conda environments using this path in windows:
/Users/Username/.conda/envs
and it should lead you to it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tal Folkman |
| Solution 2 | Brooke Jackson |
| Solution 3 | Prats |
