I have a setup with Python 3.9 installed in /usr/lib for historical reasons, and zlib and libjpeg installed /usr/lib64.
When I attempt to build Pillow, it will fail since it cannot find zlib/libjpeg, even if the compiler will happlly link to both libs without issue.
In my case, I could work around this by explicitly setting LIBRARY_PATH=/usr/lib64.
I have a setup with Python 3.9 installed in
/usr/libfor historical reasons, and zlib and libjpeg installed/usr/lib64.When I attempt to build Pillow, it will fail since it cannot find zlib/libjpeg, even if the compiler will happlly link to both libs without issue.
In my case, I could work around this by explicitly setting
LIBRARY_PATH=/usr/lib64.