首页 > 解决方案 > 蟒蛇枕头有问题

问题描述

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

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 文件,但没有任何帮助。

标签: python-3.xpython-2.7

解决方案


推荐阅读