How can the following be?
dims@pterosaur:~$ ls -l /usr/local/bin/python3
lrwxrwxrwx 1 root root 18 Aug 15 12:18 /usr/local/bin/python3 -> /usr/bin/python3.6
dims@pterosaur:~$ which python3.6
/usr/bin/python3.6
dims@pterosaur:~$ which python3
/usr/local/bin/python3
dims@pterosaur:~$ python3 --version
Python 3.5.2
dims@pterosaur:~$ python3.6 --version
Python 3.6.6
dims@pterosaur:~$ /usr/local/bin/python3 --version
Python 3.6.6
All commands were entered sequentially
hash -r
help. If you previously usepython3
, the shell may have hashed the location of it. – Kusalananda Aug 15 '18 at 09:31bash
's hashing was the issue): https://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-paths-to-executables – Kusalananda Aug 15 '18 at 09:57