I have installed a few versions on my MacBook for different projects and have only now realized what a mistake that was. I have used homebrew to install it, installed it via
It's normal to have many python binaries. You can see which is which in /usr/bin with this command:
$ ls -l /usr/bin/python*
You will see several links to different places. The native python is that one, which is in the /System/Library/Frameworks/Python.framework/Versions/2.7/bin/. Note that for OSX 10.9 (and for everything at least until 10.13) this is the python2, not python3. So you can safely remove all the other versions.
What are the other versions which you may have?
/Library/Frameworks/Python.framework/Versions/. You can remove this./Users/your_user/anaconda3/, but of course you may put in the other place. But if it contains anaconda in the path – it's Anaconda distribution. You may remove this folder.homebrew or port versions are in /opt/local/bin/. See the link destination with $ ln -l /opt/local/bin/python*. The best way of removing this is to use built-in commands like uninstall.~/Library/Python/ - that's from pip. You may safely remove the entire content of this folder in order to have a "clean" python.See also this answer.