pip install --upgrade --no-install pillow
This downloads and unpacks the library.
vim /my/venv/build/pillow/setup.py
Change JPEG_ROOT = None
to JPEG_ROOT = libinclude("/Users/zach.gohr/Developer/Cellar/jpeg/8d")
or wherever your libjpeg exists (I installed using brew install libjpeg
and found via find / -name 'libjpeg'
If the libinclude
function does not exist (exists in the case of PIL, not pillow) paste this into setup.py
as well: