where is installed python windows code example
Example 1: how to find where python is located
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Example 2: where are python libraries installed in windows
pip list -v
Example 3: where are python libraries installed in windows
Python usually stores its library (and thereby your site-packages folder)
in the installation directory. So, if you had installed Python to
C:\Python\, the default library would reside in C:\Python\Lib\
and third-party modules should be stored in C:\Python\Lib\site-packages.