python-3.x - 蟒蛇枕头有问题
问题描述
我在尝试使用枕头时收到以下错误:
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 文件,但没有任何帮助。
解决方案
推荐阅读
- javascript - JavaScript getComputedStyle 不适用于颜色名称?
- design-patterns - 哪种设计模式可以序列化对象 Builder 和 Visitor ?
- python - 查找图形的峰值和底部并标记它们
- javascript - 我可以保存我使用 Javascript(可能使用 PHP)编辑的图像,以便更改是永久性的吗?
- php - 使用类名,如何从有效的 HTML 文档中提取 div 元素及其 innerHTML?
- vb.net - 对象是任何 TKey 和 TValue 的字典(不获取 TKey 和 TValue)
- fabricjs - this.canvas.loadFromJson 不是函数
- android - 我想以编程方式添加单选按钮并设置第一个项目被选中?
- amazon-cloudfront - AWS CloudFront - 何时收取“区域数据传出到源”费用?
- ios - 如何使用 Swift 4 将数据从弹出子视图传递到视图控制器