No ZLIB support with Pillow w/ Python3.3

macos, python-3.x, zlib

Solution

This is what worked for me (OSX 10.9, Python 2.7.8):

$ brew tap homebrew/dupes
$ brew install zlib
$ brew link --force zlib

Then install Pillow:

$ pip install Pillow

Problem

I'm having difficulty getting png support into a django project. I'm in a virtual env with python 3.3.2 and Django 1.5. Everything ran smoothly when on linux, but I've moved over to OSX and am having some trouble getting situated. I have been using pillow for image support in the project, but on osx when installing pillow I get: ``` -------------------------------------------------------------------- PIL SETUP SUMMARY -------------------------------------------------------------------- version Pillow 2.1.0 platform darwin 3.3.2 (default, Aug 14 2013, 21:19:39) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] -------------------------------------------------------------------- --- TKINTER support available --- JPEG support available *** ZLIB (PNG/ZIP) support not available *** TIFF G3/G4 (experimental) support not available *** FREETYPE2 support not available *** LITTLECMS support not available *** WEBP support not available ``` I only care about the missing zlib. I have no idea how to get this going. Hours of trying various google results didn't help, so here I am. There are no dev packages like on linux, so I installed libpng, libzip via brew but that wasn't right apparently. Does anyone know how I might tackle this?

Original source