Created
November 13, 2019 06:08
-
-
Save lonsty/fb391c2cdc2377c8b9555731043c1321 to your computer and use it in GitHub Desktop.
Install pillow-simd on Ubuntu 18.04
This file contains hidden or 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
sudo apt-get update | |
# Dependency for pillow-simd on Ubuntu 18.04 | |
sudo apt-get install -y --fix-missing \ | |
libjpeg-turbo8-dev \ | |
zlib1g-dev \ | |
libtiff5-dev \ | |
liblcms2-dev \ | |
libfreetype6-dev \ | |
libwebp-dev \ | |
libharfbuzz-dev \ | |
libfribidi-dev \ | |
libopenjp2-7-dev \ | |
libraqm0 \ | |
python3-dev | |
pip uninstall -y pillow | |
CC="cc -mavx2" sudo -H pip 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