Created
July 21, 2011 17:42
-
-
Save fwenzel/1097732 to your computer and use it in GitHub Desktop.
Recreating virtualenvs after upgrading to OS X Lion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade to OS X Lion, notice your virtualenvs are all hosed. | |
# Install Xcode 4.1 from the app store (or //fs2/IT/Apple/). | |
# Make sure to actually *run* the install, it's an app inside Applications. Throw it away afterwards, if you want the space back. | |
sudo easy_install pip | |
sudo pip install virtualenv virtualenvwrapper ipython | |
# blow the old one(s) away | |
rmvirtualenv playdoh | |
# recreate the virtualenv, point it to Python 2.6 if you like, to match our servers better than 2.7 | |
mkvirtualenv --no-site-packages -p`which python2.6` playdoh | |
# reinstall the compiled packages, the vendor lib is fine. | |
cd ~/dev/playdoh | |
pip install -r requirements/compiled.txt | |
# enjoy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment