That is what I observe in my mac, iterm2:
> /usr/bin/python3 --version
python3.8.9
> python3 --version
Python3.8.9
> `which python3` --version
Python3.10.8
> which python3
/usr/local/bin/python3
Could anyone please explain why which python3
could return a path to the executable different from the executable run by mere python3
?
I messed my system a bit with too many pythons, so I was about to clean it, when I discovered this inconsistency. One of the pythons must have been installed with brew, another with conda. But shouldn't which command
always return a path to the executable run by mere command
?