Make sure you've installed Tesseract Engine as per documentation states in prerequisites.
Installation notes depending on your operating system can be found here: https://github.com/tesseract-ocr/tessdoc/blob/main/Installation.md
Lastly, check following command tesseract --version
in your terminal. If not recognized, you might need to add the PATH to your system's environment variables.