下载pytesser,下载地址:https://code.google.com/archive/p/pytesser/downloads
选择:pytesser_v0.0.1.zip
下载解压到文件夹 pytesser,复制文件夹到python安装目录下的Lib\site-packages,我存放后的目录为:D:\python\python\Lib\site-packages\pytesser
修改D:\python\python\Lib\site-packages\pytesser\pytesser.py文件,修改文件名为 __init__,编辑 __init__:
# tesseract_exe_name 变量的值改为 D:/python/python/Lib/site-packages/pytesser/tesseract,即:
tesseract_exe_name = 'D:/python/python/Lib/site-packages/pytesser/tesseract'
# import Image 改成 from PIL import Image,即:
from PIL import Image
完成。