If you’ve probably tried installing PIL(Python Imaging Library) on OSX Mavericks(version 10.9), you’re likely to have failed in doing so. After searching for a while, I found the solution that worked for me.
Before you install PIL, you need to first ensure that your Xcode Commandline tools are up to date. Just run the following command in your terminal:
This might take a while, based on your connection. Once done, you can now install PIL by running:
pip install pil
You can also install pil directly from here.