python枕头有问题

时间:2019-07-29 12:11:48

标签: python-3.x python-2.7

尝试使用枕头时收到以下错误:

ImportError    Traceback (most recent call last)
<ipython-input-9-0da89a82785c> in <module>()
      1 # load the example image and convert it to grayscale
----> 2 from PIL import Image
      3 import pytesseract
      4 #No preprocessing required here as the results are fairly good.
      5 text = pytesseract.image_to_string(Image.open('C:\\Users\\karan\\Desktop\\allTables.jpg'))

~\Anaconda3\lib\site-packages\PIL\Image.py in <module>()
     93     # Also note that Image.core is not a publicly documented interface,
     94     # and should be considered private and subject to change.
---> 95     from . import _imaging as core
     96 
     97     if __version__ != getattr(core, "PILLOW_VERSION", None):

ImportError: cannot import name '_imaging'

我尝试卸载和安装枕头以及删除PIL文件,但无济于事。

0 个答案:

没有答案