Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find tesseract path in Mac platform although install pytesseract #6

Open
yx018 opened this issue Apr 10, 2021 · 1 comment
Open

Comments

@yx018
Copy link
Collaborator

yx018 commented Apr 10, 2021

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/tesseract'

pytesseract.pytesseract.TesseractNotFoundError: /usr/local/bin/tesseract is not installed or it's not in your PATH. See README file for more information.

Test by Mac M1 silicon

@yx018
Copy link
Collaborator Author

yx018 commented Apr 10, 2021

Solution 1:
Not define pytesseract.pytesseract.tesseract_cmd = '/usr/local/bin/tesseract' in faceClassify.py
Because this path is not the same as Mac old version if we use brew install tesseract

Solution 2:
Need to install Rosetta2 via terminal by: /usr/sbin/softwareupdate --install-rosetta --agree-to-license
After installing Rosetta2 above you can then use the Homebrew cmd and install Homebrew for ARM M1 chip: arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Once Homebrew for M1 ARM is installed use this Homebrew command to install packages: arch -x86_64 brew install tesseract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant