0

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.

KReEd
  • 358
  • 4
  • 18

3 Answers3

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

  • 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