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.
Asked
Active
Viewed 642 times
0
-
2So you are talking of Anaconda environnements ? – Brooke Jackson Jan 25 '22 at 09:06
-
Possible duplicate of https://stackoverflow.com/q/53312590/8878627 – S P Sharan Jan 25 '22 at 09:07
-
@BrookeJackson yes Conda environment, sorry for the confusion, actually im not familiar with python environment related things – KReEd Jan 25 '22 at 09:10
-
is this what you need(?) : https://stackoverflow.com/a/6767329/11747148 – Shayan Jan 25 '22 at 09:46
3 Answers
0
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 *

Tal Folkman
- 2,368
- 1
- 7
- 21
0
On windows, there is a file typicaly located at : C:\Users\Bill\.conda\environments.txt
with the list of all environnements

Brooke Jackson
- 148
- 5
-
I searched but didnt get any folder named Bill, and inside Users, there were only 2 folder(Administrator & Public) that means there were no environment created? – KReEd Jan 25 '22 at 09:14
-
Not at all, the folder located here change from computer to computer, try to look in the Administrator or Public folder to find a .conda folder – Brooke Jackson Jan 25 '22 at 09:15
-
Bill here basically stands for the windows user you're using in your system. The one you start your system with – Prats Jan 25 '22 at 09:16
0
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.

Prats
- 649
- 2
- 15
-
1thanks @Prats, but im not using anaconda prompt, I am on windows command prompt. – KReEd Jan 25 '22 at 09:16
-