Skip to content

Instantly share code, notes, and snippets.

@dwayne
Created August 14, 2012 21:12
Show Gist options
  • Save dwayne/3353083 to your computer and use it in GitHub Desktop.
Save dwayne/3353083 to your computer and use it in GitHub Desktop.
Installing PIL on Ubuntu 12.04 LTS

Steps to install PIL

$ sudo apt-get install python-imaging
$ sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/
$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /usr/lib/
$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib/

$ pip install PIL

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment