how to find path where python was installed cmd code example
Example 1: how to find where python is located
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Example 2: how to find where python modules are installed
# this will show where numpy is installed
pip show numpy