macmini:bin hindlet$ which python3
/usr/local/bin/python3
macmini:bin hindlet$ /usr/local/bin/python3 --version
Python 3.7.4
macmini:bin hindlet$ python3 --version
Python 3.9.6
Even though which is telling me that the python3 in /usr/local/bin/python3 is in my path first, that's not what runs when I type python3. Instead it runs the one in /usr/bin
So I'd expect which to tell which which program will run when I type the program name.
My Path:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/hindlet/Library/Python/2.7/bin/"
command -v python3give the same result aswhich python3? – doneal24 Oct 20 '22 at 15:57which? What to use then? – Kamil Maciorowski Oct 20 '22 at 15:57which. so yes I think so. thanks. (which doesn't appear to consider to hashed commands) – Tom Oct 20 '22 at 17:03