Python2.7.9中的Pytesser-将图像打印到字符串(图像)错误

Python2.7.9中的Pytesser-将图像打印到字符串(图像)错误,python,python-2.7,ocr,pytesser,Python,Python 2.7,Ocr,Pytesser,我正在使用Pytesser进行python OCR。我已经安装了PIL和Pytesser 我运行了以下代码: from pytesser import * image = Image.open('C:\\Users\\panzer400\\Desktop\\fnord.tif') print image_to_string(image) 然后这个错误出现了 Traceback (most recent call last): File "<pyshell#2>", li

我正在使用Pytesser进行python OCR。我已经安装了PIL和Pytesser 我运行了以下代码:

from pytesser import *
image = Image.open('C:\\Users\\panzer400\\Desktop\\fnord.tif')
print image_to_string(image)
然后这个错误出现了

    Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    print image_to_string(image)
  File "C:\Python27\lib\pytesser\__init__.py", line 30, in image_to_string
    util.image_to_scratch(im, scratch_image_name)
  File "C:\Python27\lib\pytesser\util.py", line 7, in image_to_scratch
    im.save(scratch_image_name, dpi=(200,200))
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 1406, in save
    self.load()
  File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 164, in load
    self.load_prepare()
  File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 231, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 37, in __getattr__
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
将图像打印到字符串(图像)
文件“C:\Python27\lib\pytesser\\uuuu init\uuuuu.py”,第30行,在图像到字符串中
util.image\u to\u scratch(im,scratch\u image\u name)
文件“C:\Python27\lib\pytesser\util.py”,第7行,在图像\u到\u中
im.save(scratch\u image\u name,dpi=(200200))
文件“C:\Python27\lib\site packages\PIL\Image.py”,第1406行,保存
self.load()
加载文件“C:\Python27\lib\site packages\PIL\ImageFile.py”,第164行
self.load_prepare()
文件“C:\Python27\lib\site packages\PIL\ImageFile.py”,第231行,在load\u prepare中
self.im=Image.core.new(self.mode,self.size)
文件“C:\Python27\lib\site packages\PIL\Image.py”,第37行,在\uuu getattr中__
raise ImportError(“未安装成像C模块”)
导入错误:未安装图像C模块
这意味着什么?我做错了什么?
我使用的是64位Windows 8和Python 2.7.9

我在使用PyteSeract时遇到了同样的错误,我想这与PyteSeract非常相似;对我来说,最有效的方法是安装枕头(一种(最近维护的?)PIL叉)。您可能需要将
import Image
的任何实例从PIL import Image更改为


(请注意,Pillow仍然作为PIL导入)

就像我使用Python 2.7的Python映像库1.1.7一样