-
I am using the following command to install Pillow on my local windows 10 machine using Python 3.9: python3 -m pip install --upgrade Pillow --no-binary :all: When I do this I am receiving an error that the zlib files cannot be found: I do have Zlib installed at: C:\Program Files (x86)\Zlib I have been looking at the installation page for guidance but cannot find where the wheel for Pillow expects the Zlib files to be. Can someone provide guidance here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Using a wheel shouldn't mean that you need to have zlib installed. It should be either that you are using a wheel, or that you need zlib installed, not both. Could you provide the full output of the pip command? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
AFAIK dependencies aren't detected automatically on Windows, you have to add them to the INCLIB envvar before attempting to compile Pillow from source. A script that compiles all dependencies and sets the required envvars is provided in the https://github.com/python-pillow/Pillow/tree/main/winbuild directory. |
Beta Was this translation helpful? Give feedback.
AFAIK dependencies aren't detected automatically on Windows, you have to add them to the INCLIB envvar before attempting to compile Pillow from source. A script that compiles all dependencies and sets the required envvars is provided in the https://github.com/python-pillow/Pillow/tree/main/winbuild directory.