I\'ve been looking for an answer to this issue but I couldn\'t find it, so here it is.
I\'m trying to install Uniconvertor with a setup.py file into a MacOS X Lion (
I ran across this issue when installing a python library with pip.
After running xcode-select --install
, I was still getting the issue.
So I created a symlink from "gcc" to "gcc-4.2" and that worked for me.
ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/gcc /usr/local/bin/gcc-4.2
pip install --upgrade pip
did not help fix the issue for me.
The answer by DanFreak didn't help me either, but it did give me the idea for what actually did work for me.
Try the following:
I was able to resolve this by downloading one of these: https://github.com/kennethreitz/osx-gcc-installer/releases
I got this error due to running an outdated version of pip. I ran pip install --upgrade pip
and the error went away. Something to consider if you already have xcode command line tools installed and are still getting the error.
For newer versions of OS X (including macOS), you just need to open up a terminal and type:
xcode-select --install
I tried @plusjeff answer, but Xcode 4.6 does not create a /Developer folder in the main directory anymore.
Therefore I sorted it out with a symlink:
sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer
and it worked!
I have OSX 10.7.5 installed
Hope this helps!