Getting up and running with virtualenv on Mac OSX Lion.
I recently purchased a new Macbook Air and had forgotten all of the various steps to get virtualenv up and running. Using the native Python packaged with OSX resulted in Could not call install_name_tool – you must have Apple’s development tools installed which I found confusing given that, you know, I have Xcode installed.
Resorting to my old friend MacPorts, it took me a few tries and plenty of googling to get up and running. To save you some time should you be in a similar position, here are the commands you will need;
The steps required install Python, easy_install, pip and virtualenv in Mac OSX Lion:
There’s a bit of magic in there to add pip and easy_install into your path, I found this solution to be nicer than symlinking them to your /usr/bin folder. Once this is done, you are ready to rock:
Another reader has pointed out this alternative: