Skip to content

Instantly share code, notes, and snippets.

@tchen
Last active July 28, 2016 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchen/9c98f73d787692d3e6dc to your computer and use it in GitHub Desktop.
Save tchen/9c98f73d787692d3e6dc to your computer and use it in GitHub Desktop.

Installing Pillow

Installing Pillow under Ubuntu & virtualenv is pretty simple. It's just:

pip install Pillow

However, getting the support for the image formats might take some guess work. The following takes that guess work out for you. Install the library listed with apt-get install to get the needed support for the image format.

For your convenience, here's the command to install these libraries in one command line:

sudo apt-get install tk8.6-dev tcl8.6-dev python-tk libjpeg-dev libpnglite-dev libtiff5-dev libfreetype6-dev liblcms2-dev libwebp-dev libwebp-dev

Reference: http://pillow.readthedocs.org/en/latest/installation.html

Install Pillow after the above libraries are in place.

Note: this was tested for Ubuntu 14.04 (Trusty)

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