Get The Path To The Current Python Executable

This is how to get the path to the python executable that's currently executing

Code
import sys

python_path = sys.executable

print(python_path)
Results
/opt/homebrew/opt/python@3.10/bin/python3.10