Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 I need help! How to package python code with other component into an exe file??
#1
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!
Quote
#2
(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.
Quote
#3
thank you for your help and quick reply. I will try it. Smile
Quote
#4
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.
Quote
#5
(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.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Can't decide - install modules with Ubuntu package manager (apt) or pip3 in venv Thisisaline 0 48 8 hours ago
Last Post: Thisisaline
  IndentationError on installed package evvvonder 3 322 Jun-29-2019, 10:30 PM
Last Post: Gribouillis
  Problem with importing an installed package Reverend_Jim 4 410 Jun-14-2019, 10:20 PM
Last Post: Reverend_Jim
  Logger file rotation not working when python code started from windows service as exe nirvantosh 1 181 Jun-14-2019, 03:58 PM
Last Post: nirvantosh
  Can someone please help me convert this simple C ROT cipher code to Python code? boohoo9 5 206 Jun-14-2019, 03:02 PM
Last Post: DeaD_EyE
  If Python 2.x source code and applies a transform it into valid Python 3.x code. vivekm 1 145 May-20-2019, 05:12 PM
Last Post: Larz60+
  Package python script which has different libraries as a single executable or script tej7gandhi 1 172 May-11-2019, 08:12 PM
Last Post: keames
  Packaging a single module(file) with a non-code file runsun 2 351 Apr-07-2019, 06:46 PM
Last Post: runsun
  How to run python code in Java using remote SSH without py file using streams in Java varanasipavankumar 0 122 Apr-07-2019, 06:13 PM
Last Post: varanasipavankumar
  Help me with python read file and save file wereak 9 580 Apr-02-2019, 04:17 PM
Last Post: wereak

Forum Jump:


Users browsing this thread: 1 Guest(s)