Home > python > Installing Pillow (PIL Fork)

Installing Pillow (PIL Fork)

Problem:
I am going through a tutorial that required me to install Pillow. I got the following errors when installing it on a vagrant box running Ubuntu Trusty.

Solution:

$ pip install Pillow
...<Lots of output>
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

  ----------------------------------------
  Failed building wheel for Pillow

Installed libjpeg8-dev to meet the dependency.

$ sudo apt-get install libjpeg8-dev
$ pip install Pillow
...<Lots of output>
ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting

  ----------------------------------------
  Failed building wheel for Pillow

Installed zlib1g-dev to meet the dependency.

$ sudo apt-get install zlib1g-dev
$  pip install Pillow
Collecting Pillow
  Downloading http://192.168.28.189:3141/root/pypi/+f/a64/6493gd7addc02/Pillow-3.2.0.zip (10.5MB)
    100% |████████████████████████████████| 10.5MB 17.6MB/s
Building wheels for collected packages: Pillow
  Running setup.py bdist_wheel for Pillow ... done
  Stored in directory: /home/vagrant/.cache/pip/wheels/f3/66/d4/efw7da4e59d1c94f10f4395887b88ac892263f475
e43242n4q
Successfully built Pillow
Installing collected packages: Pillow
Successfully installed Pillow-3.2.0

Source:
http://stackoverflow.com/questions/36973331/valueerror-jpeg-is-required-unless-explicitly-disabled-using-disable-jpeg-ab

Advertisements
Categories: python Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: