[Python] Install PIL on Mac OSX

If you try to use truetype font or jpeg library on MacOSX wih Python + PIL, it complains. Somehow those libraries are missing in mac now (it was working in windows). Here is how to install:

  1. Download those component see http://wiki.python.org/moin/MacPython/UniversalLibrariesAndExtensions
also check:<br />http://freetype.sourceforge.net<br />http://www.ijg.org/files/jpegsrc.v6b.tar.gz
  1. build them

  2. ./configure

  3. make

  4. sudo make install

  5. Get PIL from http://www.pythonware.com/products/pil/

  6. sudo python setup.py install

Make sure you get those messages

--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok

mac, python

By: kiichi on: