19

I tried these commands:

pip install libjpeg8-dev
pip install libjpeg-dev
pip install libjpeg-devel
pip install libjpeg
pip install libjpeg62 libjpeg62-dev

but none of them works. What is the right command with pip?

DSblizzard
  • 4,007
  • 7
  • 48
  • 76

5 Answers5

47

Use apt-get. As a side note, I was getting errors installing pillow and these commands helped me

sudo apt-get install libjpeg-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libpng-dev
Dmitry
  • 4,143
  • 10
  • 46
  • 57
12

libjpeg is not a python module and pip won't ever be able to install it.

Use your Operating System's packaging system to install it. On Ubuntu and Debian that'd be apt, for example.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
2

I used homebrew to install that!

brew install libjpeg

Hope that helps

ZaMy
  • 498
  • 5
  • 12
1

Actually I use Heroku and the problem therefore is more complicated. Here is a solution.
EDIT: but attempts to use both hg- and git-based variants failed with various errors. Damn!

Community
  • 1
  • 1
DSblizzard
  • 4,007
  • 7
  • 48
  • 76
0

If you are running other weird OS like Red Hat you can also try: yum install libjpeg-devel zlib-devel