首页 > 解决方案 > 无法安装 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 有没有办法解决这个问题?

标签: pythonmacostesseractpython-tesseract

解决方案


推荐阅读