First of all I did everything mentioned here pytesseract-no such file or directory error
Still doesn\'t work. Now I\'m using Pycharm IDE with following code:
I've used the following command and it worked for me:
brew install tesseract