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?
You can search for the "environmental variable for you account". If you have added the Python in the path, it'll show as "path" in your environmental variable account.
but almost always you will find it in "C:\Users\%User_name%\AppData\Local\Programs\Python\Python_version"
the 'AppData' folder may be hidden, make it visible from the view section of toolbar.
In the
sys
package, you can find a lot of useful information about your installation:I'm not sure what this will give on your Windows system, but on my Mac
executable
points to the Python binary andexec_prefix
to the installation root.You could also try this for inspecting your
sys
module:If You want the Path After successful installation then first open you CMD and type python or python -i
It Will Open interactive shell for You and Then type
Hit enter and you will get path where your python is installed ...
If you have python in your enviroment variable then you can use the following command in cmd:
or for unix enviroment
command line image