Mountain Lion kills my Python

Published on July 31, 2012

I upgraded my Mac OS X to Mountain Lion (10.8) shortly after it was released.

Although I don’t believe it is worth upgrading, I still decided to be on ‘technology edge’.

Everything seems fine after about 2 hours of downloading and installing.. until the first kill.

I was working on Python and ran some commands. I did a pip install, and I got an error:

pkg_resources.DistributionNotFound: pip==1.1

And virtualenv is also throwing error:

ImportError: No module named virtualenvwrapper.hook_loader

After some googling, it can be easily fixed (thanks god) with:

sudo easy_install pip
sudo pip install virtualenv virtualenvwrapper

It seems like the Python site-packages were all gone too..