I can find python version with python --version
But I cannot find the location of python executable. Is there a command like python --path? If not, is there a reason why?
Use which python or which python3.
Work on unix based OS.
For Windows, see other answers.
Why is there no command line to find python location?