I downloaded executable file of tesseract-OCR and installed it. On the other hand, I also downloaded a zipfile of leptonica from http://www.leptonica.com/download.html. It i
This method works for me perfectly: Use Anaconda to install TesserOCR in an environment named OCR
Install Anaconda for Windows from here
Open Anaconda Prompt:
conda create -n OCR python=2.7
activate OCR
You should install Anaconda and tesserac
https://www.anaconda.com/distribution/#download-section and in the prompt command write
conda install -c simonflueckiger tesserocr
conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
Use Anaconda to install TesserOCR
in an environment named OCR
Open Anaconda Prompt:
conda create -n OCR python=3.6
activate OCR
For tesseract 3.5.1 (stable):
conda install -c simonflueckiger tesserocr
OR for tesseract 4.0.0 (experimental):
conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
OR download the wheel file matching your Windows platform and Python installation from here and install it via:
pip install <path_to_your_wheel_file>
I know it is too late for you but it might help others.
Installation of leptonica will not be a complete solution at all in order to remove error while installing tesseract-ocr. After the installation of tesseract using windows installer available here, you should install the python wrapper as:
pip install pytesseract
Last but not least, you should also set the tesseract path in your script after importing pytesseract library as below (Please do not forget that installation path might be modified in your case!):
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
Basically,To install any pacakge on windows , go to LIBS location and run the command
"py -3.4 -m pip install SomePackage"
for tesseract either follow here : http://emop.tamu.edu/Installing-Tesseract-Windows8
OR
Download set up from here ( https://pypi.python.org/pypi/pytesseract) and double click on set up. Hope it helps.