Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

370
Views
Fail during installation of Pillow (Python module) in Linux

I'm trying to install Pillow (Python module) using pip, but it throws this error:

ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

So as the error says, I tried:

pip install pillow --global-option="--disable-jpeg"

But it fails with:

error: option --disable-jpeg not recognized

Any hints how to deal with it?

over 4 years ago · Santiago Trujillo
6 answers
Answer question

0

Working successfuly :

 sudo apt install libjpeg8-dev zlib1g-dev 
over 4 years ago · Santiago Trujillo Report

0

Anyone with Python 3.9 you can only install Pillow 8.0, Any version lower than that wouldn't work. For more check here.

So you can run it like this:

pip install Pillow==8.0.0

BTW this is tested on pip 21.0.1 (python 3.9) on MacOS Big Sur 11.2

over 4 years ago · Santiago Trujillo Report

0

I had the ValueError: zlib is required unless explicitly disabled using --disable-zlib but upgrading pip from 7.x to 8.y resolved the problem.

So I would try to update tools before anything else.

That can be done using:

pip install --upgrade pip
over 4 years ago · Santiago Trujillo Report

0

This worked for me.

   `sudo apt-get install libjpeg-dev`
over 4 years ago · Santiago Trujillo Report

0

This worked for me to solve jpeg and zlib error :

C:\Windows\system32>pip3 install pillow --global-option="build_e
xt" --global-option="--disable-zlib" --global-option="--disable-jpeg"
over 4 years ago · Santiago Trujillo Report

0

The quickest fix is upgrate the pip. Did worked for me:

pip install --upgrade pip
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!