使用pyinstaller将paddleocr封装成命令行后运行报错 #12659
Unanswered
litongjava
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
paddleocr 2.7.0.3
使用pyinstaller将paddleocr封装成命令行后运行报错
paddleocr.py路径是D:\ProgramData\Anaconda3\envs\paddle_ocr_cpu_env\Lib\site-packages\paddleocr\paddleocr.py
paddleocr.py中定义了一个main方法
写一个脚本,直接调用paddleocr.py的main方法
导入 paddleocr 模块中的 main 方法
import paddleocr
直接调用 main 方法
if name == 'main':
paddleocr.paddleocr.main()
python main.py --image_dir "D:\images\Snipaste_2023-10-11_02-08-03.png" --use_angle_cls true --use_gpu false
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Administrator\AppData\Local\Temp\_MEI153522\paddleocr\tools/init.py'
[16180] Failed to execute script 'main' due to unhandled exception!
tools = _import_file(
'tools', os.path.join(dir, 'tools/init.py'), make_importable=True)
Beta Was this translation helpful? Give feedback.
All reactions