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
  Logger file rotation not working when python code started from windows service as exe nirvantosh 1 304 Jun-14-2019, 03:58 PM
Last Post: nirvantosh
  can't install package web in version python 3.7 a21250450 1 304 Mar-29-2019, 11:28 AM
Last Post: Larz60+
  Help with understanding a python package pyhill00 4 350 Mar-21-2019, 12:42 AM
Last Post: Larz60+
  new python package test ramkrishna 0 206 Feb-25-2019, 12:18 PM
Last Post: ramkrishna
  I can't use file __init__ to store shared variables and classes in the package AlekseyPython 2 366 Feb-04-2019, 06:26 AM
Last Post: AlekseyPython
  Compiling a Python Package on Windows nagymusic 2 615 Jan-29-2019, 12:08 AM
Last Post: nagymusic
  Running another python file from code Stefanovietch 1 424 Nov-18-2018, 09:59 PM
Last Post: ichabod801
  Help with python code to search string in one file & replace with line in other file mforthman 26 3,205 Dec-19-2017, 07:11 PM
Last Post: Larz60+
  upgrading python package amka 5 2,077 Nov-18-2017, 02:44 PM
Last Post: snippsat
  I can't import own package of file from file. harun2525 4 1,419 Jun-07-2017, 06:03 PM
Last Post: nilamo

Forum Jump:


Users browsing this thread: 1 Guest(s)