Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executable PyQt5 desktop apps

I am creating a desktop app with PyQt5 then making it executable with the pyinstaller, but I want to create an installation so that when I share just an exe file, people can first install dependencies, then run the app. Pyinstaller creates dist and builds folders on my PC, and I want this app to create these required folders on the other computer when exe file is used; what I want to do is make the app have a set-up so that all the dependencies will be installed for others. I searched on the internet but couldn't find a way to do it.

like image 315
Kanan Mahammadli Avatar asked Aug 15 '26 01:08

Kanan Mahammadli


1 Answers

You can use pyinstaller with following command

pyinstaller --onefile --windowed myscript.py

this will create single exe file in dist folder see this for more info https://pyinstaller.org/en/stable/operating-mode.html#bundling-to-one-folder

like image 93
Sadique Khan Avatar answered Aug 17 '26 16:08

Sadique Khan