Python Forum
I need help! How to package python code with other component into an exe file??
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!
Reply
#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.
Reply
#3
thank you for your help and quick reply. I will try it. Smile
Reply
#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.
Reply
#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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skeleton file export error Python Code pepapoha 4 559 Nov-17-2020, 02:06 AM
Last Post: pepapoha
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 315 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  Help needed for a python package keysson 1 343 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  How to update component props every time when a Dash callback returns? sguzunov 0 375 Jul-27-2020, 07:11 AM
Last Post: sguzunov
  Installing a python package using pip anthonymoss78 0 235 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Find the realpath for a symlinked .pth file in itself with python code. hongyi 7 659 Apr-27-2020, 05:30 AM
Last Post: Larz60+
  can we write command output to new csv file using Panda package? PythonBeginner_2020 3 661 Mar-13-2020, 12:38 PM
Last Post: ndc85430
  Python package as installable Prabakaran141 0 385 Mar-10-2020, 10:07 AM
Last Post: Prabakaran141
  How do I rewrite this .bat file code onto Python? SteampunkMaverick12 4 688 Nov-02-2019, 11:28 PM
Last Post: snippsat
  Please suggest python code to format DNA sequence FASTA file rajamdade 4 950 Oct-24-2019, 04:36 AM
Last Post: rajamdade

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020