ModuleNotFoundError on easyocr when running main.py

41 Views Asked by At

When i run my main.py on my python project, there is an error called,

Traceback (most recent call last):
  File "c:\Users\ASUS\Desktop\FYP Docs\Codes\New folder\Sidekick-S-TFG\main.py", line 2, in <module>
    import FlowchartObjectDetection
  File "c:\Users\ASUS\Desktop\FYP Docs\Codes\New folder\Sidekick-S-TFG\FlowchartObjectDetection.py", line 5, in <module>
    from BlockDetection import detect_blocks
  File "c:\Users\ASUS\Desktop\FYP Docs\Codes\New folder\Sidekick-S-TFG\BlockDetection.py", line 9, in <module>
    from ocr import get_text
  File "c:\Users\ASUS\Desktop\FYP Docs\Codes\New folder\Sidekick-S-TFG\ocr.py", line 2, in <module>
    from OCR import EasyOCR, Tesseract, AzureOCR
  File "c:\Users\ASUS\Desktop\FYP Docs\Codes\New folder\Sidekick-S-TFG\OCR\EasyOCR.py", line 4, in <module>
    import easyocr
ModuleNotFoundError: No module named 'easyocr'

In requirement.txt, easyocr is already mentioned. Also, I run pip install easyocr and it was run without any error. This is my folder structure.

enter image description here

1

There are 1 best solutions below

0
Kanchana Kariyawasam On

I was able to fix this error by updating my conda. The issue was with my conda.