ModuleNotFoundError: No module named 'PIL'
See original GitHub issueI am trying to get pytesseract to run on a Windows 10 system but unfortunately always get the following error log:
File "C:\Users\Marc\PycharmProjects\test\venv\lib\site-packages\pytesseract\pytesseract.py", line 27, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Marc\PycharmProjects\test\main.py", line 15, in <module>
import pytesseract
File "C:\Users\Marc\PycharmProjects\test\venv\lib\site-packages\pytesseract\__init__.py", line 2, in <module>
from .pytesseract import ALTONotSupported
File "C:\Users\Marc\PycharmProjects\test\venv\lib\site-packages\pytesseract\pytesseract.py", line 29, in <module>
import Image
ModuleNotFoundError: No module named 'Image'
Process finished with exit code 1
Issue Analytics
- State:
- Created 3 years ago
- Comments:16
Top Results From Across the Web
ImportError: No module named PIL - Stack Overflow
Still got the same error. Then, I tried to import an image, it says 'No module named image' found. I installed image using...
Read more >ModuleNotFoundError: No module named 'PIL' in Python
The Python "ModuleNotFoundError: No module named 'PIL'" occurs when we forget to install the Pillow module before importing it or install it ...
Read more >[SOLVED] Python No Module Named Pil
The Python interpreter may not detect specific modules when imported. Therefore, upon execution, Python will return the ModuleNotFoundError: No ...
Read more >ModuleNotFoundError: No module named 'PIL' - Python Help
I installed Pillow. ... What version of Python are you using to run the script? You have to install Pillow for each and...
Read more >Modulenotfounderror: no module named pil ( Solved )
Modulenotfounderror : no module named pil error occurs if the pillow package is not installed or not properly configured. The best way to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updating either pip or setuptools solves the problem. Versions that don’t work: pip 20.0.2, setuptools 45.2.0. Versions that do: pip 21.3.1, setuptools 60.5.0.
hi, it’s ok with version 0.3.7, but 0.3.8 crash with same error
from .pytesseract import ALTONotSupported File "/tmp/pip-install-wt3k8kh5/pytesseract/pytesseract/pytesseract.py", line 28, in <module> import Image ModuleNotFoundError: No module named 'Image'