Mac OS X Lion: Install the Python Image Library (PIL)

First make sure you have lib jpeg install for JPEG handling

$ curl -O http://www.ijg.org/files/jpegsrc.v8c.tar.gz 
$ tar zxvf jpegsrc.v8c.tar.gz 
$ cd jpeg-8c/ 
$ ./configure 
$ make 
$ sudo make install

Then I use pip to install PIL

$ sudo pip install PIL

(Make sure you have Xcode installed on your machine or you may run into C compiler errors)

< / >