mac下安装tesserocr包的流程和错误(Failed building wheel for tesserocr)

按以下是步骤顺序安装:

brew install imagemagick

brew install tesseract

在命令行输入tesseract即可验证是否成功安装tesseract

pip3 install tesserocr

如果最后一步出现Failed building wheel for tesserocr问题,在仔细看的话会发现是include  <cstdint>那里出了问题。

解决方法就是找到/usr/local/Cellar/tesseract/3.05.02/include/tesseract目录下的host.h文件,将include <cstdint>改为include <stdint.h>即可执行最后一步。

猜你喜欢

转载自blog.csdn.net/zx1245773445/article/details/83120402