pip3 安装 tesserocr 失败(macOS)

pip3 安装 tesserocr 失败(macOS),第1张

现象
  1. 报错没有 leptonica/allheaders.h
  2. 报错 ld: library not found for -ltesseract
解决方案
brew install tesseract
CPPFLAGS=-I/opt/homebrew/include LIBRARY_PATH=/opt/homebrew/lib pip3 install tesserocr

解释:安装tesserocr依赖的环境tesseract,并且设置变量将include和lib path暴露给pip3。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/722971.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-26
下一篇 2022-04-26

发表评论

登录后才能评论

评论列表(0条)

保存