How to install Tesserocr on Mac I'm trying to install Tesserocr for python

I'm not sure what the replacement for apt-get in apt-get install tesseract-ocr libtesseract-dev libleptonica-dev is in this case. I'm new to this and don't fully understand how it works.

I installed tesseract successfully, but I think (to my understanding) tesseract is a command line program. I check brew but I don't think brew has it.
To install tesserocr's dependencies on macOS, you can use a package manager like Homebrew or macports. These install the C/C++ libraries and executables that are needed. 

For either of them you need to install the base package manager the install tesseract 

For Homebrew brew install tesseract

For Macports sudo port install teseract

After that you will be able to install you tesserocr wrapper using pip install without errors:

pip install tesserocr