How to fix broken python 2.7.11 after OSx updates How to fix broken python 2.7.11 after OSx updates python python

How to fix broken python 2.7.11 after OSx updates


The reason

In my case was an OSx upgrade that affected my homebrew and after upgrading to python 2.7.11 is didn't install it properly.

How I got it to work:

I found steps 3 and 4 in a thread here and many thanks to https://github.com/baronomasia.

1 - Removed python 2.7 by using the post in here

2 - Removed the homebrew python installed version

brew uninstall python

3- Reinstall your Xcode command tools:

sudo xcode-select --install

4- Upgrade homebrew and reinstall python through homebrew:

brew update && brew reinstall python    


After doing brew upgrade python my system python was broken and was throwing fits about virtualenvwrapper.sh, as well as my pip command was just suddenly missing.I went to python.org and downloaded the python 2.7.13 installer, ran it, I now have python 2.7.13, pip, and can run pip install virtualenvwrapper and things seem to work.