I want Python 3 (and I do not want to mess with OS X provided python). According to:
https://docs.python.org/3/using/mac.html
I can get Python 3 and live long and prosper, BUT it is not clear what happens when I want to upgrade using the next DMG. As an example I can tell you what happens with R on OS X: you get a GUI in /Application
and stuff in /Library/Frameworks
. On upgrade the GUI is upgraded and the new framework is placed in the /Library/Frameworks
directory, side by side with the old (there is a nice ‘current’ symlink that makes sure that the old stuff is ignored). I always delete the old stuff to avoid accumulating crud, and that’s it. Would this approach work for Python?
brew unlink python3
to remove the symbolic link. You will now use the osx version when runningpython
. To use the brew version, you can still run, for example,/usr/local/Cellar/python3/3.3.2/bin/python3
or create a symlink likeln -s /usr/local/Cellar/python3/3.3.2/bin/python3 /usr/local/bin/python-3.3.2
and after that, runpython-3.3.2
. You can also install old version of python3 formulas with HB, and use all of them separately. Check this on how to do that. – madmax1 Aug 23 '15 at 20:39/usr/local/bin/python3
. And since OS X doesn't ship with Python 3 anyway, you don't overwrite any preinstalled Python. – skrause Aug 25 '15 at 22:19