New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source #4242
Comments
I figured it was my pip version that was behind. I close the issue as upgrade the pip version fixed it. Seems like i didn't look hard enough at already closed issues. |
i have the same problem. Did you solve the problem? |
I am having the same issue |
Man! I have already solved this problem. Just try: easy_install pillow |
Thanks |
I solved this by downgrading pip to version 19.3.1 (from 20.0.2) |
thank you very much, solved. |
Well, downgrade pip from 20.0.2 to 19.3.1 not working. Could you tell me Python version which you are using? I am using Python 3.7.5 |
Python 3.8.1 |
@lpessin Thanks for your fast reply. |
@xzxdev Pillow 7.0.0. |
installing Pillow==6.2.2 Solved the issue 👍 |
Pillow==6.2.0 was giving me the issue.
|
On windows downgraded to Python 3.7.5 64 bit installs fine now. |
perfect, installing Pillow==6.2.2 fixed it. |
This seemed to work for me. Thanks a bunch. |
The package requirements of all versions of ubuntu is mentioned here. Solved it using pip install --upgrade pip |
It's working for me, thankyou!! |
Hard to believe this is still happening in 2020 (like many unpleasant things, I guess), but it is! E.g.
Here's how I get 6.2.2 going on Catalina with Python 2.7 FWIW.
|
I checked the source code of
|
For anyone having trouble, please have a look. |
@python-pillow/pillow-team All of these one-off approaches should perhaps be documented under macOS … https://pillow.readthedocs.io/en/latest/installation.html, with the exception of my one-off here: #4242 (comment) because Python 2.7 and Pillow 6.2.2 are old/unsupp. Then again, I'll answer that rhetorical question by saying for my part: I'd like to never ever EVER see a "zlib missing" ticket again my entire life, and if that means fully documenting every Pillow release and every compatible-at-the-time Python release with some meaningful, helpful, useful, guaranteed not-to-fail workaround, then maybe I'm interested in doing that work. Probably not, but maybe. #QuarantineLife |
This issue was originally for Windows, and and there's lots of thumbs up for the solution in the second comment: upgrade your pip. We've since liberally peppered the installation instructions with "upgrade pip" before installing Pillow: Probably many of the followup comments are unrelated and in any case don't have enough info to tell what's going on. I'd be tempted to lock this issue so new reports give enough info. Anyway, https://github.com/python-pillow/Pillow/issues/3438 is the big one for zlib on macOS when building from source (installing from wheel should be fine). It seems Apple keep changing things, but I agree it'd good to settle on something to document, and we can update as and when needed. Or even document a few of them. |
@hugovk Yaaas, good ideas, thanks. I'm probably pro pick-a-fix, document fix, link-to-documented-fix, lock-this-issue. |
I have trouble installing Pillow in my virtual environment on windows.
I an using:
windows 19 64-bit
Python 3.8 64-bit
pip Version 19.03
setuptools 40.8.0
When ever i try to use pip/pip3 install pillow i get the following message saying it can't locate zlib. I am quiet stuck. I have looked though your issues and could not find a solution that resolved my problem.
The text was updated successfully, but these errors were encountered: