Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install libjpeg on OSX?

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.

like image 513
jeffery_the_wind Avatar asked Jul 12 '16 14:07

jeffery_the_wind


Video Answer


2 Answers

Using Homebrew:

brew install jpeg
like image 59
mirosval Avatar answered Oct 04 '22 16:10

mirosval


For libjpeg-turbo

 brew install jpeg-turbo

Then it'll give you instructions on how to add it to your library load path (so that it doesn't conflict with libjpeg, it isn't in the standard paths).

like image 38
rogerdpack Avatar answered Oct 04 '22 14:10

rogerdpack