Search code examples
python-3.xpaddle-paddlepaddleocr

Error: Can not import paddle core while this file exists


I am currently using intel i3 with no gpu, I created a virtual environment in python with python version 3.10.11, while my current python version is 3.11.3

In the virtual env

I tried installing paddleocr using pip install paddleocv and pip install paddlepaddle

when I import paddleocr using from paddleocr import PaddleOCR,draw_ocr

I am getting error: Error: Can not import paddle core while this file exists: d:\env\.venv\lib\site-packages\paddle\fluid\libpaddle.pyd

ImportError: DLL load failed while importing libpaddle: The specified module could not be found.


Solution

  • I had also encountered this problem before, and I solved it by the command:

    python -m pip install --force-reinstall paddlepaddle==2.5