import sys print("Python version:") print(sys.version) print("\nExecutable:") print(sys.executable)