First make sure you have lib jpeg install for JPEG handling
1 2 3 4 5 6 | $ 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
1 | $ sudo pip install PIL |
(Make sure you have Xcode installed on your machine or you may run into C compiler errors)


