[英]Unable to install tesserocr on Mac
我正在尝试使用以下命令安装 tesserocr:
pip install tesserocr
但我收到此错误:
tesserocr.cpp:298:10: fatal error: 'utility' file not found #include <utility> ^~~~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/clang' failed with exit status 1
我已经使用以下方法brew install tesseract
: brew install tesseract
我正在使用 Mojave 10.14.3。
试试这个: CC=clang XCC=clang++ CPPFLAGS="-stdlib=libc++ -DUSE_STD_NAMESPACE -mmacosx-version-min=10.8" pip install tesserocr
。 这对我来说可以。
这个原始答案来自https://github.com/sirfz/tesserocr/issues/177 。
祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.