The following snippet will print the path to the interpreter being used.
import sys print(sys.executable)