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: