Upgrading from Python to 2.7.10 to 2.7.11 on OSX

13,349

Solution 1

You should not replace the Python version that comes with OS X. If you do, you may break something in your system. Instead, you should install a new instance of Python.

You could use brew whenever they are offering 2.7.11:

brew install python

However, it is likely that they still only offer 2.7.10. In that case, you can download the source code and compile it yourself. Unpack into a directory and run:

./configure --prefix=/opt/python2.7.11 && make && make install

Solution 2

brew install python@2

You can install python 2 version this

(It will take only latest 2.7.X version)

brew install python

will install python 3.

Share:
13,349

Related videos on Youtube

wogsland
Author by

wogsland

I'm super, thanks for asking...

Updated on September 18, 2022

Comments

  • wogsland
    wogsland over 1 year

    How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?

    • jiggunjer
      jiggunjer over 8 years
      Isnt python already on 3.6?