Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用pyinstaller打包成可执行文件报错 #7635

Closed
lqllife opened this issue Sep 18, 2022 · 1 comment
Closed

使用pyinstaller打包成可执行文件报错 #7635

lqllife opened this issue Sep 18, 2022 · 1 comment
Assignees

Comments

@lqllife
Copy link

lqllife commented Sep 18, 2022

  • 系统环境/System Environment:win 11
  • 版本号/Version:Paddle:2.3.2 PaddleOCR:2.6.0.1

项目已经写好,使用 python main.py可以运行项目,但是使用pyinstaller -F -w main.py编译成可执行的二进制文件时,报错:

Traceback (most recent call last):
  File "main.py", line 2, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "libs\ocr.py", line 2, in <module>
ModuleNotFoundError: No module named 'paddleocr'

是我打包的方式不对吗?

@WenmuZhou
Copy link
Collaborator

这个我们不清楚,我们也没有试过打包exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants