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?
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?
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
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.
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!
If you are running other weird OS like Red Hat you can also try:
yum install libjpeg-devel zlib-devel