“decoder jpeg not available” on Mac OS X
March 15, 2010 | mac, other, pythonauthor: Karol Zielinski | comments: 1 | views: 3850
Tags: libjpeg, mac, mac os x, pil
I have an error “decoder jpeg not available” while working on one of my python projects on Mac OS X. Why is that and how to fix it?
First… download MacPorts and run the install it on your Mac.
And then…
sudo port install jpeg
This will install libjpeg.
And after that it’s time for PIL.
sudo /opt/local/bin/port install py25-pil
Probably you’ll need to supplement your PYTHONPATH with the location of the python libraries that MacPorts uses. In your /etc/profile or ~/.profile, add the following line:
export PYTHONPATH=/opt/local/lib/python2.5/site-packages
and that’s it. Now everything should be fine.
Helpful resources:
Hello, I'm Karol Zielinski, internet evangelist, an entrepreneur, project manager and a web developer from Gdynia, Poland. I like creative design, good advertisement, social media and all kind of stuff around the web.
September 3, 2010, 11:54 am
Thanks for this. I tried a bunch of other solutions and this one did the trick.