Check what interpreter is running from a Python REPL or script
The following snippet will print the path to the interpreter being used.
import sys
print(sys.executable)
The following snippet will print the path to the interpreter being used.
import sys
print(sys.executable)