import sys import os print("Executable:", sys.executable) print("Exists:", os.path.exists(sys.executable))