我不知道你从哪下载的文件包
大概流程:
下载所需的tesserocr模块的whl文件,下载后进入存储该文件的路径(如果你不想用cd命令进入这个路径,那就需要把你下载文件存放的地址加入widows环境变量里),执行“pip install .whl”,这样就会安装成功
simonflueckiger/tesserocr-windows_buildgithub.com
找到windows平台对应的位数64位还是32位下载好
第二步然后pip使用之前,终端terminal里面 要移动到你下载的地方(cd 命令),然后在输入下面的代码,否则会找不到你要押解的包,出现错误,我看你的错误代码里好像有这个
pip install .whl1.3.4-Tesserocr的安装 · Python3网络爬虫开发实战germey.gitbooks.io
你下载安装完,在此执行上面的语句
pip install .whl
如果你不想使用命令,那么就下载exe版本c++中使用Tesseract-OCR - CSDN博客blog.csdn.net
更新:
我看你的反馈表里缺少Visual C++ Build Tools,下载 | IDE、Code 和 Team Foundation Server | Visual Studiowww.visualstudio.com
你把这个编辑器下载了,它自带c++组块,安装好之后
在使用pip命令
更新2:
sirfz/tesserocrgithub.com
这是官方的安装方法
关键是我用的mac,widow不知道到会出现什么结果
Windows
The proposed downloads consist of stand-alone packages containing all the Windows libraries needed for execution. This means that no additional installation of tesseract is required on your system.
Conda
You can use the channel simonflueckiger to install from Conda:
conda install -c simonflueckiger tesserocr
or to get tesserocr compiled with tesseract 4.0.0:
conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
pip
Download the wheel file corresponding to your Windows platform and Python installation fromsimonflueckiger/tesserocr-windows_buildgithub.com
and install them via:
pip install .whl