Posted by Brad Montgomery 2 years, 2 months ago (4 comments)
There are several places online that discuss problems installing PIL on Mac OS X Snow Leopardbrew intall jpeg.This installs the library into
/usr/local/Cellar/jpeg/7
FREETYPE_ROOT = "/usr/local"
JPEG_ROOT = ("/usr/local/Cellar/jpeg/7/lib", "/usr/local/Cellar/jpeg/7/include")
python setup.py build_ext -i
python selftest.pywhich should yield the following: 57 tests passed.
workon myproject
python setup.py install
import Image
im = Image.open("/path/to/pretty/picture.jpg")
im.show()
Sorry, I've disabled comments. If you want, talk to me on twitter: @bkmontgomery