Skip to content

Instantly share code, notes, and snippets.

@ciscorn
Created May 4, 2018 07:50
Show Gist options
  • Save ciscorn/31c7e29e8a53a8b546cd69aef520450a to your computer and use it in GitHub Desktop.
Save ciscorn/31c7e29e8a53a8b546cd69aef520450a to your computer and use it in GitHub Desktop.
Install pillow-simd on Ubuntu
#!/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" \
@gabrieldernbach
Copy link

Better then the documentation :P
I first forgot to do an apt update though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment