Created
May 4, 2018 07:50
-
-
Save ciscorn/31c7e29e8a53a8b546cd69aef520450a to your computer and use it in GitHub Desktop.
Install pillow-simd on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
pip3 uninstall pillow | |
apt install \ | |
libjpeg-turbo8-dev \ | |
zlib1g-dev \ | |
libtiff5-dev \ | |
liblcms2-dev \ | |
libfreetype6-dev \ | |
libwebp-dev \ | |
libharfbuzz-dev \ | |
libfribidi-dev \ | |
libopenjp2-7-dev \ | |
libraqm0 \ | |
CC="cc -mavx2" pip3 install --no-cache-dir -U -I --force-reinstall pillow-simd \ | |
--global-option="build_ext" \ | |
--global-option="--enable-zlib" \ | |
--global-option="--enable-jpeg" \ | |
--global-option="--enable-tiff" \ | |
--global-option="--enable-freetype" \ | |
--global-option="--enable-lcms" \ | |
--global-option="--enable-webp" \ | |
--global-option="--enable-webpmux" \ | |
--global-option="--enable-jpeg2000" \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Better then the documentation :P
I first forgot to do an
apt update
though.