PIL에 대한 zlib 지원이 작동하지 않습니다

PIL에 대한 zlib 지원이 작동하지 않습니다

데비안의 지침에 따라 PIL을 설치하려고 하는데 이 부분을 수정하는 방법을 모르겠습니다.

build_ext에서 --- ZLIB(PNG/ZIP) 지원을 받았습니다.*자체 테스트 중에 ZLIB(PNG/ZIP) 지원이 설치되지 않음

내가 무엇을 놓치고 있나요?

root@portman:~/dist/Imaging-1.1.7# python setup.py build_ext -i
running build_ext
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux2 2.7.2+ (default, Dec  1 2011, 01:55:02)
              [GCC 4.6.2]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
root@portman:~/dist/Imaging-1.1.7# python selftest.py
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
*** TKINTER support not installed
--- JPEG support ok
*** ZLIB (PNG/ZIP) support not installed
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed.

답변1

PIL은 Debian python-imaging패키지에 포함되어 있습니다: apt-get install python-imaging.

실제로 수동으로 설치하려면 zlib1g-dev 패키지를 설치해야 할 수도 있습니다.

관련 정보