tesserocr linux安装

经历了三次分别在windows和linux安装失败(缺少wheel、缺少vc++、缺少tesseract等各种错误全遇到了)之后,终于找到了正解,网上可行的办法不多,分享一波

先安装tesseract(别管那么多,安装就完事了)

sudo apt-get install tesseract-ocr

tep1. 如果没有python先安装Python3的开发环境

sudo apt-get install python3-dev python3-setuptools

Step2. 安装依赖库

sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \

    libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev \

    tcl8.6-dev tk8.6-dev python-tk

Step3. 安装Pillow

pip3 install Pillow

Step4. 安装完毕查看版本

tesserocr安装

Step1. 安装开发环境

apt install libtesseract-dev libleptonica-dev

Step2. 安装库

pip3 install tesserocr


参考地址:https://www.xtuz.net/detail-63.html

练习参考地址(崔大好书):https://germey.gitbooks.io/python3webspider/1.3.4-Tesserocr%E7%9A%84%E5%AE%89%E8%A3%85.html

你可能感兴趣的:(tesserocr linux安装)