Can’t install PIL on Mavericks (unknown argument: -mno-fused-madd)

I tried installing PIL (Python Imaging Library) on Mavericks recently and ran into a few problems. Normally this should be enough:

sudo pip install pil

However, it failed on the “cc” command. It turns out I didn’t have the compiler installed. This is provided with the Xcode command line tools which I was missing. Some […]