Print the executable path for the active interpreter.
Section: Inspect the environment
Show interpreter executable path
bash
bash
python -c "import sys; print(sys.executable)"Explanation
A reliable way to verify exactly which Python binary is running.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Inspect the environment
Show active Python version
Print the Python version from the current environment.
Show sys.prefix and sys.base_prefix
Confirm whether you are inside a venv.
List installed packages
Show packages currently installed in the environment.