0
votes

I had PIL installed on osx using pip, but since getting the error that jpeg decoder is not available, I uninstalled PIL so that I can first install the jpeg libraries, and then reinstall PIL. However, both the following give me errors:

    sudo pip install libjpeg

..Could not find any downloads that satisfy the requirement libjpeg

    sudo pip install libjpeg-dev

Could not find any downloads that satisfy the requirement libjpeg-dev

Any ideas how to install the jpeg lib? Thanks. -TM

1
I pressume you've tried all the standard apt-get update stuff before running this?will
not sure what apt-get is, but see my comments below to the answer. I have gotten so far with this.user818190
apt-get is a way to install things on many *nix systems. makes this kind of thing really easy. Don't know if it's available for mac though.will

1 Answers

1
votes

I don't have a mac, but a quick google search yielded these instructions:

$ curl -O http://www.ijg.org/files/jpegsrc.v8c.tar.gz
$ tar zxvf jpegsrc.v8c.tar.gz
$ cd jpeg-8c/
$ ./configure
$ make
$ sudo make install

at this page.

If that doesn't work, then this answer to the same question worked for someone, and they got it from this blog comment.