What did you do?
Install Pillow by source code
What did you expect to happen?
Install successfully.
What actually happened?
Build error.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-_pl57v2h/setup.py", line 807, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
What versions of Pillow and Python are you using?
Pillow:
Pillow-5.2.0
Python:
Python 3.7.0
detail see: docker-library/python#305
Because the library_dirs lose /usr/lib/x86_64-linux-gnu or /lib/x86_64-linux-gnu
What did you do?
Install Pillow by source code
What did you expect to happen?
Install successfully.
What actually happened?
Build error.
What versions of Pillow and Python are you using?
Pillow:
Pillow-5.2.0
Python:
Python 3.7.0
detail see: docker-library/python#305
Because the
library_dirslose/usr/lib/x86_64-linux-gnuor/lib/x86_64-linux-gnu