Cannot Install Pillow for Python 3.x on Windows - Zlib Required

I am using PyCharm with Python 3.0 and I want to import the Pillow Module.

When installing the Pillow module from Project Interpreter, I received a message saying:

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

enter image description here

I also tried installing the same from the command line, using both pip installation and easy installation, but the same error also occurs on the command line.

I tried to find several solutions on the Internet, but most of them are for Linux. for example this solution: there is no module named zlib

How can I solve this problem on Windows and using PyCharm?

+6
source share
3 answers

Simple Go to Virtualenv

and run

 easy_install Pillow 

It works great

+3
source

I spent almost a day figuring out what was wrong with installing the pillow. He worked until yesterday and suddenly stopped working from today. It finally turned out that few of my teammates had upgraded the python version to version 3.6, which is now available for download. Since Pillow is not yet compatible with 3.6 and supports only up to 3.5.2, this error has appeared.

 Resolution is to check if Pillow supports your version of python. Once I reverted python back to 3.5.2 the installation worked like a charm and no errors encountered. 

We hope that this help will solve your problem.

+2
source

files> Settings> Project Test> Project Interpreter> ADD> Pillow-PIL

-2
source

All Articles