-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
What did you do?
Attempt to install Pillow
What did you expect to happen?
Installation success and I don't create this issue.
What actually happened?
The headers or library files could not be found for zlib.
What versions of Pillow and Python are you using?
Python 3.5.3 and 956432e
I attach the build_ext --debug output here
MikuAuahDark@Xyrillia-20166:~/Pillow$ LDFLAGS=-L/usr/lib/x86_64-linux-gnu sudo python3 setup.py build_ext --debug
running build_ext
Appending path /home/MikuAuahDark/Pillow/src/libImaging
Looking for `lcms2` using pkg-config.
Package lcms2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lcms2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lcms2' found
Package lcms2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lcms2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lcms2' found
Looking for `zlib` using pkg-config.
Looking for `freetype2` using pkg-config.
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Looking for `libopenjp2` using pkg-config.
Package libopenjp2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libopenjp2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libopenjp2' found
Package libopenjp2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libopenjp2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libopenjp2' found
Looking for `libimagequant` using pkg-config.
Package libimagequant was not found in the pkg-config search path.
Perhaps you should add the directory containing `libimagequant.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libimagequant' found
Package libimagequant was not found in the pkg-config search path.
Perhaps you should add the directory containing `libimagequant.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libimagequant' found
Looking for `libtiff-5` using pkg-config.
Package libtiff-5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-5' found
Package libtiff-5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-5' found
Looking for `libtiff-4` using pkg-config.
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-4' found
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-4' found
Looking for `libjpeg` using pkg-config.
Appending path /usr/lib
Appending path /usr/include
Appending path /usr/local/lib
Appending path /usr/local/include
Appending path /lib
Looking for zlib
Checking for include file zlib.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file zlib.h in /usr/include
Found zlib.h
Couldn't find library z in ['/usr/lib', '/usr/local/lib', '/lib']
Looking for jpeg
Checking for include file jpeglib.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file jpeglib.h in /usr/include
Found jpeglib.h
Couldn't find library jpeg in ['/usr/lib', '/usr/local/lib', '/lib']
Looking for jpeg2000
Checking for openjpeg-#.# in /home/MikuAuahDark/Pillow/src/libImaging
Checking for openjpeg-#.# in /usr/include
Checking for openjpeg-#.# in /usr/local/include
Checking for openjpeg-#.# in /usr/include/python3.5m
Looking for imagequant
Checking for include file libimagequant.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file libimagequant.h in /usr/include
Checking for include file libimagequant.h in /usr/local/include
Checking for include file libimagequant.h in /usr/include/python3.5m
Looking for tiff
Checking for include file tiff.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file tiff.h in /usr/include
Checking for include file tiff.h in /usr/local/include
Checking for include file tiff.h in /usr/include/python3.5m
Looking for freetype
Couldn't find library freetype in ['/usr/lib', '/usr/local/lib', '/lib']
Looking for lcms
Checking for include file lcms2.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file lcms2.h in /usr/include
Checking for include file lcms2.h in /usr/local/include
Checking for include file lcms2.h in /usr/include/python3.5m
Looking for webp
Checking for include file webp/encode.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file webp/encode.h in /usr/include
Checking for include file webp/encode.h in /usr/local/include
Checking for include file webp/encode.h in /usr/include/python3.5m
Looking for webpmux
Checking for include file webp/mux.h in /home/MikuAuahDark/Pillow/src/libImaging
Checking for include file webp/mux.h in /usr/include
Checking for include file webp/mux.h in /usr/local/include
Checking for include file webp/mux.h in /usr/include/python3.5m
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
(usual exception message of missing dependencies here)
Additional note:
-
Debian is running inside WSL (Linux environment under Windows, not MinGW nor Cygwin).
-
Debian 9.3 "Stretch"
-
zlib is installed.
pkg-config zliboutputs-lz. I can't installlibjpeg8-devbecause it's replaced bylibjpeg62-turbo-dev.
Reactions are currently unavailable