Skip to content

Instantly share code, notes, and snippets.

@evansde77
Created June 8, 2016 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evansde77/3f609d578e5d0260b3c0df2d2ffce4b6 to your computer and use it in GitHub Desktop.
Save evansde77/3f609d578e5d0260b3c0df2d2ffce4b6 to your computer and use it in GitHub Desktop.
Steps to install libjpeg and pillow on Max OSX 10.11.15 (assumes XCode, XCode command line tools etc)
sudo chmod -R a+rw /usr/local/src
mkdir /usr/local/src
chmod a+rw -R /usr/local/src
curl --remote-name http://www.ijg.org/files/jpegsrc.v9b.tar.gz
tar -xzvf jpegsrc.v9b.tar.gz
cd jpeg-9b
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
export LD_LIBRARY_PATH=/usr/local/lib
pip install pillow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment