from paddleocr import PaddleOCR
完整报错 / Complete Error Message
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from paddleocr import PaddleOCR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/paddleocr/__init__.py", line 14, in <module>
from .paddleocr import *
File "/usr/local/lib/python3.10/dist-packages/paddleocr/paddleocr.py", line 34, in <module>
from tools.infer import predict_system
ModuleNotFoundError: No module named 'tools.infer'
可能解决方案 / Possible solutions
I manually edit the paddle.py
file, on code
from :
from tools.infer import predict_system
from tools.infer.utility import draw_ocr, str2bool, check_gpu
from paddleocr.tools.infer import predict_system
from paddleocr.tools.infer.utility import draw_ocr, str2bool, check_gpu
附件 / Appendix