Wednesday, October 14, 2015

Pillow library install issue for RPi (running Raspbian)



Pillow library install issue for RPi 2 (running Raspbian)

Problem


I found little issue till Pillow installing (via pip for newly installed Python 3.5 to the almost clear RPi 2 (mod. B) running Raspbian):

ValueError: --enable-jpeg requested but jpeg not found, aborting. 

My Raspbian version (information retrieved by running $ uname --all):

Linux rpi-number08 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 armv7l GNU/Linux



Solution


You need to run:

$ sudo apt-get install libjpeg-dev

before installing pillow with pip:

$ sudo pip3.5 install pillow

(of course you can have/use other version of pip)

Enjoy!

No comments:

Post a Comment