Python on OS X

Discussion in 'Mac Programming' started by jkigel, Nov 14, 2014.

  1. jkigel macrumors newbie

    Mar 7, 2013

    I found out that the installed Python2 version on my machine (OS X Yosemite) is 2.7.6 but the latest is 2.7.8.

    How can I update Python version to the latest?

    I also found inside /System/Library/Frameworks/Python.framework/Versions folder that Python 2.3, 2.5 and 2.6 are also installed.
    Can I delete these version?

  2. kryten2, Nov 14, 2014
    Last edited: Nov 14, 2014
  3. ArtOfWarfare macrumors G3


    Nov 26, 2007
    2.7.6 is probably new enough - I wouldn't sweat it. No new features were added in the year between 2.7.6 and 2.7.8 - just minor bug fixes that managed to lay dormant for a decade before one user out of millions found it (just so you get an idea of how incredibly insignificant they are.) I have a lot of machines running Python. One is running 2.5.?, a few are running 2.6.?, and the rest are running either 2.7.6 or 2.7.8 (depending on if I had to manually install or if it came with Python included.)
  4. blaster_boy macrumors 6502


    Jan 31, 2004
    I wouldn't touch your system Python - a lot of scripts in your OS apparently use that system Python.

    Probably a reason also for those old versions. If you have upgraded your system several times, these old python versions are probably leftovers from the older OS's. At least take a backup using super duper or carbon copy before removing them !!!

    If you want to work with the latest version of Python, you can always install either the official python (it'll be installed alongside the system one) from or a distribution. I like Anaconda, which has it's own separate install system using the "conda" command and a huge number of scientific packages.
  5. aaronvan Suspended


    Dec 21, 2011
    República Cascadia
    You can also install Python 3.
  6. hiddenmarkov macrumors 6502a

    Mar 12, 2014
    pyenv, also homebrew related, is decent as well.

    You can select as many python versions as you want and command line makes them as temporary or permanent as you would like.

    If you ever go down the perl route it be the same thing, vendors if they push out perl scripts look for stock as well. there are other brew projects for this as well.

Share This Page