skip to Main Content

I am on a Mac, using Visual Studio Code. I have installed tesseract using "pip3 install tesseract". In terminal, if I run "tesseract" it looks like it is installed.

However, when I run "import pytesseract as tes" in Visual Studio, I get the error "ModuleNotFoundError: No module named ‘pytesseract’" Has anyone had this issue and resolved it?

2

Answers


  1. I would check if the library is in the correct folder with the other packages where VSC go and search for them.

    I would try with a more common library with commands like ‘import math’ and ‘import numpy as np’ and verify that they are OK. Then verify that tesseract is in the same folder.

    Login or Signup to reply.
  2. if you check pypi.org for the package names you’ve mentioned; it looks like these are 2 different packages.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search