以下为错误提示
tesserocr.cpp:598:35: 致命错误:tesseract/publictypes.h:没有那个文件或目录
#include "tesseract/publictypes.h"
^
编译中断。
error: command 'gcc' failed with exit status 1
提示没有"tesseract/publictypes.h"这个东西的话,那就下载一个,运行以下命令:
yum install tesseract-devel
再次输入安装命令:
pip3 install tesserocr
成功!
注:如果再出现的话,提示缺少什么就安装那个文件名后面加个‘-devel’