Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';不要使用python-PIL_Python_Python Imaging Library - Fatal编程技术网

Can';不要使用python-PIL

Can';不要使用python-PIL,python,python-imaging-library,Python,Python Imaging Library,我试图识别PNG图像中的文本。 我想使用python PIL,但我不能。 我做了谷歌告诉我的一切,但它从来没有工作。 我使用的是Ubuntu 12.04/13.04。 我已经安装了所有的库。。当我安装PIL时,它说 -------------------------------------------------------------------- *** TKINTER support not available --- JPEG support available --- ZLIB (PN

我试图识别PNG图像中的文本。 我想使用python PIL,但我不能。 我做了谷歌告诉我的一切,但它从来没有工作。 我使用的是Ubuntu 12.04/13.04。 我已经安装了所有的库。。当我安装PIL时,它说

--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
--------------------------------------------------------------------
但是如果我运行selftest.py,那么我会得到以下结果

--------------------------------------------------------------------
--- PIL CORE support ok
*** TKINTER support not installed
*** JPEG support not installed
*** ZLIB (PNG/ZIP) support not installed
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------
运行自检:


示例中的失败: 尝试: _信息(Image.open(os.path.join(ROOT,“Images/lena.jpg”)) 除IOError外,v: 印刷品 自selftest.testimage的第24行开始 应为:('JPEG'、'RGB'、(128128)) 获取:解码器jpeg不可用 1个项目出现故障: selftest.TestImage57中的1个 测试失败1次失败。 *57人中有1人测试失败


一些帮助会很好。

PIL似乎不受欢迎,试一下吧

有一种新的PIL叉子叫做枕头,对很多人来说,它似乎比PIL更稳定。它也很容易安装。查找(信息/文档)和(要安装)。虽然我认为
pip安装枕头
应该可以工作