Regarding building an executable file with PyInstaller that includes the ‘torch’ and ‘ultralytics’ libraries #8770
Unanswered
hehehe1234567894
asked this question in
Help
Replies: 1 comment
-
Then you'll need to either instrument your code with
with
The build-time errors you've shown are mostly due to modules being renamed between different package versions, and are unlikely to be related to your run-time problem. |
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
-
I am working on a GUI project and have imported the following libraries:
Among them, 'wenxin_AI_zh' and 'word_creater' are my own Python code.
They reference these libraries.
The spec file looks like this:
However, the executable file exits on its own after starting in the Windows console, and no GUI appears.
There are the following errors during the build:
The PyInstaller log mainly shows errors related to torch.
With ‘debug=True’ and ‘console=True’, there are no error messages output. The main program exits mysteriously when run, and the situation is unclear.
Beta Was this translation helpful? Give feedback.
All reactions