Section XXII: scrapy crawler identification codes (a) mounting libraries

First, install tesserocr

1, first download tesseract: https://digi.bib.uni-mannheim.de/tesseract/  , I downloaded the tesseract-ocr-setup-3.05.02-20180621.exe

Once downloaded simply double-click to install, and has been click Next until completion.

Then need to be added to two path environment variables, is a path, it is a TESSDATA_PREFIX.

Use shortcuts win + r dos open window enter tesseract -v to see if the installation was successful

 

The next step is to install third-party libraries python tesserocr: pip3 install tesserocr, but an error occurs

Then you need to download Microsoft Visual C ++, Download: https: //visualstudio.microsoft.com/downloads

But finally being given, tesserocr-2.4.0-CP36-cp36m not-win_amd64.whl IS ON A Wheel the this Platform Supported

Finally, because the version of Tesseract-OCR and tesserocr wrong,

So I was in https://github.com/simonflueckiger/tesserocr-windows_build/releases downloaded tesserocr v2.4.0 (tesseract 4.0.0) was successful

So there has also been set up in pycharm

 

Guess you like

Origin www.cnblogs.com/zhaco/p/10896210.html