Yosemite Pip Install Fix
I was getting compile errors when pip installing anything requiring compilation after upgrading to Yosemite, barfing out all sorts of cryptic nonsense ending with:
error: command '/usr/local/bin/gcc-4.2' failed with exit status 1
Googling that error didn’t help, and I tried all sorts of fixes until I realized the real problem was this line in my ~/.bash_profile
:
export CC=/usr/local/bin/gcc-4.2
When I removed that, opened a new terminal, reactivated my virtualenv and pip install -r requirements.txt
everything worked perfectly. Hopefully this helps someone else who’s been having issues after upgrading to Yosemite and have some lingering bash remnants from earlier dev setups.