Find the installation location of tesseract and then set that path as mentioned in above replies.
!which tesseract
It will give the path to set. ( for linux environment ).