Python PIL安装-部分JPEG支持
正在尝试在Mac OS X上将PIL用于图像打印脚本 安装了所有必需的库,运行“python setup.py build_ext-i”进行测试,JPEG显示为“支持可用”: 但是,运行“python selftest.py”会显示为“unsupported”:Python PIL安装-部分JPEG支持,python,macos,jpeg,python-imaging-library,Python,Macos,Jpeg,Python Imaging Library,正在尝试在Mac OS X上将PIL用于图像打印脚本 安装了所有必需的库,运行“python setup.py build_ext-i”进行测试,JPEG显示为“支持可用”: 但是,运行“python selftest.py”会显示为“unsupported”: PIL 1.1.7 TEST SUMMARY -------------------------------------------------------------------- Python modules loaded fro
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
--- TKINTER support ok
*** JPEG support not installed
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
*****************************************************************
Failure in example:
try:
_info(Image.open(os.path.join(ROOT, "Images/lena.jpg")))
except IOError, v:
print v
from line #24 of selftest.testimage
Expected: ('JPEG', 'RGB', (128, 128))
Got: decoder jpeg not available
1 items had failures:
1 of 57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.
重新安装libjpeg和pil并没有产生任何效果。您使用pil而不是更新得多的东西有什么原因吗?我强烈推荐它……是的,我正在努力让它发挥作用:。我希望@jBender的可能副本也能与枕头一起使用。
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
--- TKINTER support ok
*** JPEG support not installed
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
*****************************************************************
Failure in example:
try:
_info(Image.open(os.path.join(ROOT, "Images/lena.jpg")))
except IOError, v:
print v
from line #24 of selftest.testimage
Expected: ('JPEG', 'RGB', (128, 128))
Got: decoder jpeg not available
1 items had failures:
1 of 57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.