python - 无法安装 tesseract-ocr
问题描述
我正在尝试tesseract-ocr
通过pip3 install tesseract-ocr
在终端中进行安装,但是我像这样失败了
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jz/bsmf1jwj3rbfknrblgyz8x040000gn/T/pip-install-gc378zqu/tesseract-ocr_4b7469d1541e42d8a6c5fce918842876/setup.py'"'"'; __file__='"'"'/private/var/folders/jz/bsmf1jwj3rbfknrblgyz8x040000gn/T/pip-install-gc378zqu/tesseract-ocr_4b7469d1541e42d8a6c5fce918842876/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/jz/bsmf1jwj3rbfknrblgyz8x040000gn/T/pip-record-gptqgjai/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/umsi06/Library/Python/3.8/include/python3.8/tesseract-ocr Check the logs for full command output.
我也已经从 homebrew ( brew install tesseract
) 安装了 tesseract 有没有办法解决这个问题?
解决方案
推荐阅读
- php - 如何在 laravel 中编辑控制器以将用户重定向到页面
- typescript - 在此上下文完整的情况下引用装饰类方法
- ios - iOS ML Kit - 无法使用 cocapods 安装
- php - 什么是 `/t.php` GET 请求来到生产服务器?
- sql - 需要帮助构建具有多对多关系的 Django 数据库
- css - 使用 Material-UI 扩展抽屉将页脚保持在底部
- java - 如何阻止精灵离开设备显示Libgdx?
- java - 尽管批量插入成功,但 ReturnGeneratedKeys 为空
- c - 指向长的空指针
- chainer - 如何在chainer中使用BatchNormalization3D?