I am using PyCharm with Python 3.0 and I want to import Pillow Module.
While installing the Pillow module from Project Interpreter, I got a message which says:
ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting.
I have also tried installing the same from command line by using both pip install and easy install but the command line is also throwing the same error.
I tried to find several solution in internet, but most of them are for Linux. for example, this solution: no module named zlib
How can I solve this issue in Windows and with PyCharm ?
To load the image, we simply import the image module from the pillow and call the Image. open(), passing the image filename. Instead of calling the Pillow module, we will call the PIL module as to make it backward compatible with an older module called Python Imaging Library (PIL).
\AppData\Local\Temp\pip-install-dmx24pn4\Pillow\setup.py:29: RuntimeWarning: Pillow does not yet support Python 3.8 and does not yet provide prebuilt Windows binaries. We do not recommend building from source on Windows.
Step 2: To check if PIL is successfully installed, open up the python terminal by typing python3 in the terminal. This will open up the python3 interactive console now type the following command to check the current version of the PIL. This will output the currently installed version of the PIL.
I spent almost a day figuring out what is wrong with pillow installation. It was working fine till yesterday and suddenly stopped working from today. Finally got it figured out, Few of my team mates upgraded python to 3.6 version which is now available for download. Since Pillow is not yet made compatible with 3.6 and is supporting only till 3.5.2 this error popped up.
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.
Hope this help resolve your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With