-
Notifications
You must be signed in to change notification settings - Fork 86
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
"headers or library files could not be found for zlib" #120
Comments
Please follow the installation instructions at https://github.com/uploadcare/pillow-simd#installation especially the bit about prerequisites. |
Windows 11 Unlike the @glitchyordis I've never been able to install Pillow. I had the same error "headers or library files could not be found for zlib" and no amount of reinstalling of pip did it for me. This little resolution story was how I cobbled mine together. Everyone said "python comes with zlib" or "reinstall pip" but none of it solved the error. I am using Windows 11. I have Visual Studio 2022 installed. My solution starts with running pip install of pillow-simd with the --no-clean option so that the temp folder is left behind. Which left all the temp files for me to use. Mine ended up in: From that folder edit the
Running Here I ran I copied the files from Then running Fair warning this is from memory / command history but probably has enough to get you moving forward. This was my system and my folders and in no way represents what you're working with. I hope this helps the next person! |
What did you do?
python -m pip install --upgrade pip
python -m pip install Pillow-SIMD
I can always install Pillow without issue, the error on zlib only popups with Pillow-SIMD installation.
What did you expect to happen?
Successful installation of Pillow-SIMD.
What actually happened?
"The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source."
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: