[Python] How to use 'pyinstaller'?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
Debmann
Posts: 16
Joined: 2023-09-12 21:43
Has thanked: 1 time

[Python] How to use 'pyinstaller'?

#1 Post by Debmann »

I created a program using qt5designer with python on Windows 10.
Now I am trying to figure out how to create an installable for Windows 10.

Should I use Windows or Linux to create the install application?

No way can I figure out how to use pyinstaller!
I have found pyinstaller instructions on the Internet but they are really confusing. :?

Is there an easy way to create installers?
Please take my migraine!!

Thanks in advance.

Aki
Global Moderator
Global Moderator
Posts: 2203
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 50 times
Been thanked: 292 times

Re: [Python] How to use 'pyinstaller'?

#2 Post by Aki »

Hello,
I created a program using qt5designer with python on Windows 10.
Now I am trying to figure out how to create an installable for Windows 10.
Some links that might be useful: If you are targeting Windows as a deployment platform, you probably don't need Debian GNU/Linux for that.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
Debmann
Posts: 16
Joined: 2023-09-12 21:43
Has thanked: 1 time

Re: [Python] How to use 'pyinstaller'?

#3 Post by Debmann »

Thanks for the reply. I have made some progress. I'm sticking with Linux.
Without using qt5 with other programs all is okay.

Just trying to figure out how to use pyinstaller with qt5 designer.
Seems like the qt files somehow are not included in the pyinstaller run.

Thanks for the link I'll check them out.

User avatar
Debmann
Posts: 16
Joined: 2023-09-12 21:43
Has thanked: 1 time

Re: [Python] How to use 'pyinstaller'?

#4 Post by Debmann »

I have been successful using pyinstaller without any PyQt5 files. However with PyQt5 files no joy.
Below is my pyinstaller line ... does anyone see problems with it?
This command is executed in terminal in the directory containing the LECC files, other files I use the full path.

/home/harveywallbanger/.local/bin/pyinstaller --add-data="./LECCui.py;./LECC.ui;./LECC_Combined.ui;/usr/lib/python3/dist-packages/PyQt5/QtCore;/usr/lib/python3/dist-packages/PyQt5/QtWidgets:." LECCui.py

Aki
Global Moderator
Global Moderator
Posts: 2203
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 50 times
Been thanked: 292 times

Re: [Python] How to use 'pyinstaller'?

#5 Post by Aki »

Hello,
Is the source code of your program available to anyone is interested in helping you ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
Debmann
Posts: 16
Joined: 2023-09-12 21:43
Has thanked: 1 time

Re: [Python] How to use 'pyinstaller'?

#6 Post by Debmann »

The help that I really need is how to make a program out of my project.
I suppose at some point in time I would share my code, but it's not pretty.

Post Reply