I want to find out my Python installation path on Windows. For example:
C:\Python25
How can I find where Python is installed?
I want to find out my Python installation path on Windows. For example:
C:\Python25
How can I find where Python is installed?
It would be either of
This worked for me:
C:\Users\Your_user_name\AppData\Local\Programs\Python
My currently installed
python version
is3.7.0
Hope this helps!
In your Python interpreter, type the following commands:
On my windows installation, I get these results:
(You can also look in
sys.path
for reasonable locations.)If anyone needs to do this in C# I'm using the following code:
if you still stuck or you get this
simply do this replace 2 \ with one