tesseract is not installed or it's not in your path
在進行驗證碼解析需要用到的python套件tesseract-ocr
始終會出現路徑找不到的問題
錯誤:
tesseract is not installed or it's not in your path
解法:
修改套件原始路徑
C:\Users\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pytesseract\pytesseract.py
tesseract_cmd = 'tesseract'
始終會出現路徑找不到的問題
錯誤:
tesseract is not installed or it's not in your path
解法:
修改套件原始路徑
C:\Users\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pytesseract\pytesseract.py
tesseract_cmd = 'tesseract'
改為
tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
將路徑改為另外安裝的Tesseract-OCR路徑就可以抓到了
留言
張貼留言