![]() |
I need help! How to package python code with other component into an exe file?? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I need help! How to package python code with other component into an exe file?? (/thread-19787.html) |
I need help! How to package python code with other component into an exe file?? - Wendy - Jul-14-2019 Ask for help: How do I package the python code and other components(some exe,jar and dll files) it depends on to run into an executable file? I have tried pyinstaller in windows and mac. In the past few days, I checked a lot of information, but all failed. Currently, my executable and lib folder(containing several third-party components) can be run in the same directory, but if I delete the lib folder, it will not work. But I want to keep only the executable (this is also the project's requirements) thank you very much! RE: I need help! How to package python code with other component into an exe file?? - snippsat - Jul-14-2019 (Jul-14-2019, 05:39 PM)Wendy Wrote: have tried pyinstaller in windows and mac. In the past few days, I checked a lot of information, but all failed.What failed? It can be a little difficult to troubleshoot in some cases,look at this post. I usually start from virtual environment to have all isolated and working before use pyinstaller. Then start to work out error in any,doc is also good When Things Go Wrong. RE: I need help! How to package python code with other component into an exe file?? - Wendy - Jul-14-2019 thank you for your help and quick reply. I will try it. ![]() RE: I need help! How to package python code with other component into an exe file?? - Wendy - Jul-15-2019 The above is a very detailed solution, but unfortunately it is not very suitable, the folder where the executable leaves the third-party component still does not work. Is there any other possible solution??? thank you very much. RE: I need help! How to package python code with other component into an exe file?? - snippsat - Jul-15-2019 (Jul-15-2019, 03:18 AM)Wendy Wrote: The above is a very detailed solution, but unfortunately it is not very suitable, the folder where the executable leaves the third-party component still does not work. Is there any other possible solution??? thank you very much.It's of course impossible help with info you have given. Here an other one Sound-player standalone,see that know which external files that i need to add avbin.dll(windows) and libavbin.so.10(Linux),as i build it for both Windows and Linux. See command line and spec file where can extra stuff that needed in project when build with pyinstaller. |