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
  How to update component props every time when a Dash callback returns? sguzunov 0 196 Jul-27-2020, 07:11 AM
Last Post: sguzunov
  Installing a python package using pip anthonymoss78 0 81 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Find the realpath for a symlinked .pth file in itself with python code. hongyi 7 384 Apr-27-2020, 05:30 AM
Last Post: Larz60+
  can we write command output to new csv file using Panda package? PythonBeginner_2020 3 448 Mar-13-2020, 12:38 PM
Last Post: ndc85430
  Python package as installable Prabakaran141 0 222 Mar-10-2020, 10:07 AM
Last Post: Prabakaran141
  How do I rewrite this .bat file code onto Python? SteampunkMaverick12 4 463 Nov-02-2019, 11:28 PM
Last Post: snippsat
  Please suggest python code to format DNA sequence FASTA file rajamdade 4 677 Oct-24-2019, 04:36 AM
Last Post: rajamdade
  Logger file rotation not working when python code started from windows service as exe nirvantosh 1 1,319 Jun-14-2019, 03:58 PM
Last Post: nirvantosh
  Help with understanding a python package pyhill00 4 718 Mar-21-2019, 12:42 AM
Last Post: Larz60+
  new python package test ramkrishna 0 421 Feb-25-2019, 12:18 PM
Last Post: ramkrishna

Forum Jump:


Users browsing this thread: 1 Guest(s)