I have 2.7.10, 2.7.13, 2.6, 3.4, 3.5, 3.6 python versions on my MacOS, I don’t even know which one I called. Of course, I can use
which python
to find out.
Here is the way to make it clean, actually it is the way to make it for sure and clear.
1. Update the python by homebrew (in case you don’t have it, use following line under terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then:
brew install python
2. Put the following four lines to ~/.profile
PATH="/usr/local:${PATH}" export PATH PATH="/usr/local/bin:${PATH}" export PATH
3. You Done!
Is that easy?
(reference: https://dzone.com/articles/good-clean-python-install)