how to find python installation location code example Example: get python directiory import sys print('\n'.join(sys.path))