The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 34,503β€…    Votes:  3β€…
Tags: 16.04   lts   python3  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1193353
Title: How do I install pillow in Ubuntu 16.04 LTS?
ID: /2019/12/03/How-do-I-install-pillow-in-Ubuntu-16.04-LTS_
Created: December 3, 2019    Edited:  June 12, 2020
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Ubuntu 18.04 and Python 3

This will interest users past Ubuntu 16.04 LTS: install_pillow.sh

#!/bin/bash

apt update
apt install python3-pip -y
apt install libjpeg8-dev zlib1g-dev libtiff-dev libfreetype6 libfreetype6-dev libwebp-dev libopenjp2-7-dev libopenjp2-7-dev -y

pip3 install pillow --global-option="build_ext" --global-option="--enable-zlib" --global-option="--enable-jpeg" --global-option="--enable-tiff" --global-option="--enable-freetype" --global-option="--enable-webp" --global-option="--enable-webpmux" --global-option="--enable-jpeg2000"

This also addresses some of the β€œdependencies” which I believe OP was referring to:

⇧ how to find or list file and directories which having size more than 100mb How to diagnose Software Updater issue? It just pops up a window with no content  β‡©