
Keith B. answered 07/05/19
Software Engineer and Math Geek
I can't quite answer for the Mac, but I had a similar issue on my Linux box. I upgraded from Python2 to Python3, but type python at the prompt would still get me python 2. Some script I needed (like for doing installs) required python3, so I played some games with symbolic links.
Using whereis and which, I tracked down the command python (mine was in /usr/bin) and then donning my cape, I sudo mv python python2 to move it out of the way, then sudo ln -s python3 python. Not the best method, but definitely worked for me.