Alex
Alex

Reputation: 44265

How to find the python installation path on windows?

On windows 10 I have python installed and working, but not in the standard place C:\PythonXY.

How to find out the location of the python installation?

Upvotes: 0

Views: 246

Answers (2)

Andy
Andy

Reputation: 50540

You can do this:

>>> import sys
>>> sys.executable
C:\Python35\python.exe

Upvotes: 5

Chris
Chris

Reputation: 136880

Run where python in a console.

See also https://stackoverflow.com/a/304447/354577

Upvotes: 3

Related Questions