Missing tiffio.h header installing Pillow on Mac OS X

When I try to install Pillow using PIP, I get this error:

μ ~: pip install pillow
...
libImaging/TiffDecode.h:10:10: fatal error: 'tiffio.h' file not found

#include <tiffio.h>

         ^

1 error generated.

error: command 'cc' failed with exit status 1

Does anyone know how to solve this? I am on OS X 10.9 and have previously been able to create Pillow on this computer.

Update: Please note that I have tiffio.hon my machine /usr/local/include/tiffio.h. After installing this directory in the path to include C, I can successfully compile Pillow.

μ ~: C_INCLUDE_PATH=/usr/local/include
μ ~: pip install pillow
Downloading/unpacking pillow
...
Successfully installed pillow
Cleaning up...

How should this be done, or is something wrong with my machine or with the installation package?

+4
source share
1 answer

, libtiff :

brew install libtiff
+4

All Articles