Cannot find zlib headers on macOS 10.15 Catalina
My new MacBook Pro 16" comes with Catalina and while setting up Python to develop rst2pdf, I discovered that Pillow wouldn't install.
1 2 |
Running setup.py install for pillow ... error ERROR: Command errored out with exit status 1: |
Looking through the long list of red text I came across:
1 2 |
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. |
Aha! The way this was solved on the previous version of macOS (Mojave) was to use the macOS_SDK_headers_for_macOS_10.14.pkg installer to set up symlinks to header files from the old place to the new place. This doesn't work on Catalina, so… continue reading.