Python &引用;startupinfo)Windows错误2系统找不到指定的文件;与tesseract
我已经花了几个小时试图用Python &引用;startupinfo)Windows错误2系统找不到指定的文件;与tesseract,python,subprocess,tesseract,Python,Subprocess,Tesseract,我已经花了几个小时试图用windowserror error2解决这个问题,但即使在寻找具体的解决方案后,这个问题仍然存在 这是我的计划: "from PIL import Image import pytesseract img = Image.open('D:/Divers/Projet plaques/m.png') img.show() img.load() i = pytesseract.image_to_string(img)" 下面是错误消息: “回溯(最近一次呼叫最后
windowserror error2
解决这个问题,但即使在寻找具体的解决方案后,这个问题仍然存在
这是我的计划:
"from PIL import Image
import pytesseract
img = Image.open('D:/Divers/Projet plaques/m.png')
img.show()
img.load()
i = pytesseract.image_to_string(img)"
下面是错误消息:
“回溯(最近一次呼叫最后一次):
文件“D:\Divers\Projet plaques\Recognition.py”,第18行,在
i=pytesseract.image\u to\u字符串(img)
文件“D:\Divers\Portable Python 2.7.6.1\App\lib\site packages\pytesseract\pytesseract.py”,第161行,在图像\u到\u字符串中
config=config)
文件“D:\Divers\Portable Python 2.7.6.1\App\lib\site packages\pytesseract\pytesseract.py”,第94行,在run\u tesseract中
stderr=子流程(管道)
文件“D:\Divers\Portable Python 2.7.6.1\App\lib\subprocess.py”,第709行,位于init
错误读取,错误写入)
文件“D:\Divers\Portable Python 2.7.6.1\App\lib\subprocess.py”,第957行,在执行子进程中
startupinfo)
WindowsError:[错误2]Le fichier spécifiéest introvable“
我不知道如何解决这个问题,因为这个问题似乎隐藏得很深。
我有Windows 10、Python 2.7、PIL和tesseract