What's the best way to install Pillow for Python 3?


I tried using setuptools, but was unsuccessful. But here's another method:

Get pip for Python 3

Open a terminal and enter

sudo apt-get install python3-pip

Get the dependencies

Install dependencies listed in Pillow's docs:

sudo apt-get install python3-dev python3-setuptools
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev

Install Pillow

For Ubuntu 13.10+,

sudo pip3 install Pillow

and for 13.04-,

sudo pip-3.2 install Pillow

  • Worked for me in Ubuntu 17.10.. Thanks alot.. – Amandeep Singh Nov 30 '17 at 14:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.