pyinstaller打包paddlex[ocr]依赖不全 #17494
Unanswered
1146465765
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.
打包的时候遇到paddlex[ocr]依赖不全怎么办,我把官方给的打包脚本改成了hook写进打包spec里面也还是报依赖缺失
2026-01-14 14:54:16,606-10AF4P23L0001BT-ERROR [5216-13124]: run parser error: A dependency error occurred during pipeline creation. Please refer to the installation documentation to ensure all required dependencies are installed.
Traceback (most recent call last):
File "paddleocr_pipelines\base.py", line 105, in create_paddlex_pipeline
File "paddlex\inference\pipelines_init.py", line 167, in create_pipeline
File "paddlex\utils\deps.py", line 205, in _wrapper
File "paddlex\utils\deps.py", line 198, in require_extra
paddlex.utils.deps.DependencyError: OCR requires additional dependencies. To install them, run pip install "paddlex[ocr]==<PADDLEX_VERSION>" if you’re installing paddlex from an index, or pip install -e "/path/to/PaddleX[ocr]" if you’re installing paddlex locally. Alternatively, you can install paddlex[ocr-core] instead.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "parser\parser.py", line 822, in run_parser
File "parser\parser.py", line 755, in get_action_driver
File "action_word\aw.py", line 82, in init
File "action_word\aw.py", line 1320, in init_detect_module
File "action_word\detect_module\popup_loginpage_detector.py", line 19, in init
self.ocr = PaddleOCR(
^^^^^^^^^^
File "paddleocr_pipelines\ocr.py", line 163, in init
File "paddleocr_pipelines\base.py", line 67, in init
File "paddleocr_pipelines\base.py", line 107, in _create_paddlex_pipeline
RuntimeError: A dependency error occurred during pipeline creation. Please refer to the installation documentation to ensure all required dependencies are installed.
实际上已经pip install paddlex[ocr]过了,我该怎么查看我现有环境具体缺失的是啥依赖呢?
All reactions