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