PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

cannot import name 'inference' from 'paddle'

Open Stephenzho opened this issue 2 years ago • 4 comments

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem paddleocr --image_dir C:/Users/admin/Pictures/微信图片_20220521091100.jpg Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in run_module_as_main return run_code(code, main_globals, None, File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\admin\AppData\Local\Programs\Python\Python39\Scripts\paddleocr.exe_main.py", line 4, in File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\paddleocr_init.py", line 15, in from .paddleocr import * File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\paddleocr\paddleocr.py", line 29, in from tools.infer import predict_system File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\paddleocr\tools\infer\predict_system.py", line 30, in import tools.infer.utility as utility File "C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\paddleocr\tools\infer\utility.py", line 23, in from paddle import inference ImportError: cannot import name 'inference' from 'paddle' (C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle_init.py)

  • 系统环境/System Environment: windows11
  • 版本号/Version:Paddle:1.0.2 PaddleOCR:2.3.0.2 问题相关组件/Related components:
  • 运行指令/Command Code:paddleocr --image_dir C:/Users/admin/Pictures/微信图片_20220521091100.jpg
  • 完整报错/Complete Error Message:

Stephenzho avatar May 22 '22 14:05 Stephenzho

安装paddle了吗

MissPenguin avatar May 27 '22 06:05 MissPenguin

paddleocr

安装了paddle-1.0.2 还是报错ImportError: cannot import name 'inference' from 'paddle'

finch-ift avatar Aug 08 '22 03:08 finch-ift

https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/conda/windows-conda.html 按照官网的步骤操作,也是报同样的错误

yxdwind avatar Oct 14 '22 04:10 yxdwind

1665722105662

yxdwind avatar Oct 14 '22 04:10 yxdwind