ModuleNotFoundError:没有名为“pytesser”的模块

2024-06-16 08:55:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经成功安装了pytesseract(最新版本),环境路径(c:\users\hp\appdata\local\programs\python\python36-32\lib\site packages)已设置,但当我尝试使用/导入pytesseract库时,没有显示名为“pytesser”的模块错误。在

这是我要运行的程序-

from pytesser import *
image = Image.open('text.png') # Open image object using PIL
print (image_to_string(image)) # Run tesseract.exe on image fnord
print (image_file_to_string('fnord.tif'))

错误图片-

enter image description here


Tags: toimage路径版本string环境local错误