我已经通过pip3
安装了两个库pillow
和pytesseract
为了进行ocr
当我运行这段代码时
import Image
from pytesseract import image_to_string
img = Image.open('mz.png')
print(image_to_string(img))
我收到ImportError:没有名为 pytesseract 的模块
错误
当我再次安装pytesseract
时,它说满足要求
这有什么问题
最佳答案
您可能安装了多个 Python 版本,并尝试使用另一个版本作为您已安装软件包的版本来运行您的文件
关于python - 导入错误: No module named pytesseract in ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55162448/