【发布时间】:2021-01-12 12:52:03
【问题描述】:
我使用 pytesseract 从图像中进行 OCR。一切工作正常.. 直到我在我的 cmd 中尝试了 pip install 枕头和 pip easy install 枕头,只是为了尝试随机裁剪。之后,当我尝试导入 pytesseract。一直报错
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\pytesseract\pytesseract.py", line 28, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
在处理上述异常的过程中,又发生了一个异常:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pytesseract
File "C:\Python39\lib\site-packages\pytesseract\__init__.py", line 2, in <module>
from .pytesseract import ALTONotSupported
File "C:\Python39\lib\site-packages\pytesseract\pytesseract.py", line 30, in <module>
import Image
ModuleNotFoundError: No module named 'Image'
【问题讨论】:
标签: python python-imaging-library ocr python-tesseract modulenotfounderror