You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: