Search code examples
pythonwindowspython-2.7cmd

e pyhow to get python installed path from command line


I am trying to get the installed path of python? Any idea how to get the python installed path from command line in windows. I don't want to set the environment variable?

Thanks,


Solution

  • try opening up cmd and simply:

    where python
    

    By default, this searches your PATH for matches. More precisely:

    Description: Displays the location of files that match the search pattern. By default, the search is done along the current directory and in the paths specified by the PATH environment variable.

    Most windows python installers modify your PATH so this should find what doing python at the CLI will call.