请求一份用pyinstallerc成功打包的.spec文件样例 #15912
Replies: 1 comment
-
问题已解决#15918 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
我使用的python3.12,在脚本环境下成功运行了ocr预测功能(基本遵循官方样例),但是一旦用pytinstaller打包后,无法在执行PaddleOCR(),会报错误,如下
OCR
requires additional dependencies. To install them, runpip install "paddlex[ocr]==<PADDLEX_VERSION>"
if you’re installingpaddlex
from an index, orpip install -e "/path/to/PaddleX[ocr]"
if you’re installingpaddlex
locally.我的.spec文件与paddleocr相关部分现在只包含了下面内容
datas=[
('paddleocr_test_venv/Lib/site-packages/paddlex/.version', 'paddlex'),
('2paddleocr_test_venv/Lib/site-packages/paddlex/configs/pipelines','paddlex/configs/pipelines'),
('paddleocr_test_venv/Lib/site-packages/paddlex/inference/pipelines', 'paddlex/inference/pipelines'),
],
我想向大家请求一份用pyinstallerc成功打包的.spec文件样例,感激不尽
Beta Was this translation helpful? Give feedback.
All reactions