How to install libjpeg on OSX?

jeffery_the_wind picture jeffery_the_wind · Jul 12, 2016 · Viewed 16.1k times · Source

libjpeg or libjpeg-turbo are requirements for installing Pillow, which is a new requirement for storing images on django. So I need to install Pillow but that won't work until I get jpeg support which comes by way of packages called libjpeg or libjpeg-turbo. I hope that is the case, at least.

This dependency is not an issue on the dev server, but I need to do some work locally, (Macbook Pro OSX 10.11.5). Haven't been able to do it yet or find a solution to install yet for OSX. I was hoping I would find something in pip or conda but there is nothing for OSX. I have seen there are various normal ways to install on Linux.

Answer

mirosval picture mirosval · Jul 12, 2016

Using Homebrew:

brew install jpeg