-
-
Save ankitshekhawat/40a1e66e955a57055ff1f96e5bf4cdc5 to your computer and use it in GitHub Desktop.
Install pillow-simd on Ubuntu
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
#!/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