Question: I want to install PIL on Mavericks using pip but get this error.

```
_imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found
#include <freetype/fterrors.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1

```

My Command Line Tools are installed and up to date and every hint I found didn't help.
How can I get this to compile?

EDIT: I just checked, freetype is also already installed via homebrew

Answer: 
With macports, the solution that worked for me:

```
sudo port install freetype
sudo ln -s /opt/local/include/freetype2 /opt/local/include/freetype

```

And then re-run the PIL build process.
If you're still looking for answers like I was after reading this and other googling, you may be interested to see this:

Warning

Pillow >= 2.1.0 no longer supports “import \_imaging”. Please use “from PIL.Image import core as \_imaging” instead.

from [here](http://pillow.readthedocs.org/en/latest/installation.html)

By the time you read this, the page will probably have changed, but the text will be still here at least.