I want to run the line of code
! brew install tesseract
in a Jupyter notebook cell but I am getting the error:
zsh:1: command not found: brew
I used the terminal in vs code and followed the instructions to install homebrew. It worked out fine in the terminal and I was able to run brew doctor
with success. However, I was still unable to run the initial code in the Jupyter notebook. When I ran echo $PATH
in the terminal and ! echo $PATH
in the Jupyter notebook, the paths were different, so I suspect this being part of the problem but don’t know how to fix it.
MattyS737 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.