how to figure out where python is installed code example Example: get python directiory import sys print('\n'.join(sys.path))