ImportError: No module named pytesseract
Python import
errors usually boils down to one of those three cases (whether is is modules you developed; or modules distributed as packages):
You did no install the required package. Googling
pytesseract
tells me its an OCR that is distributed and installable using Python package manager toolpip
by runningpip install pytesseract
in your favorite shell.You did install the package, but is is not in your python path.
(Less often) You did install the package, and it is in your python path, but you used a name already in user by Python, and the two are conflicting.
In your case, I strongly think this is the first one. Case 2. and 3. can be assessed by calling python -v your_script.py
as described in this answer.
No module named pytesseract error
See after installing pytesseract ,using
<cmd>C:\> pip install pytesseract
Try :
import pytesseract
If above is not working then it has do something with the installation ,
Check if pytesseract folder is available under "\Python27\Lib\site-packages" ,
Try the above command from site packages, Hope this helps ,
Else there is something wrong with installation .
Related Topics
How to Download Python from Command-Line
How to Kill Zombie Processes Created by Multiprocessing Module
How to Install Lxml for Python Without Administative Rights on Linux
How to Pass a Keystroke (Alt+Tab) Using Popen.Communicate (On Linux)
High Kernel CPU When Running Multiple Python Programs
Running a Python Script Using Cron
Trying to Simulate Constant Byte Rate. Confusion with Time.Sleep Results
Making Python Script Accessible System Wide
How to Check Which Version of Nltk, Scikit Learn Installed
Finding the Command for a Specific Pid in Linux from Python
How to Make Python3 Command Run Python 3.6 Instead of 3.5
Permission Denied When Executing Python File in Linux
Runtimeerror: Invalid Display Variable
Python Sigkill Catching Strategies
How to Call a Parent Class'S Method from a Child Class in Python