python Gui | change exe file size | change into pyinstaller | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

python Gui | change exe file size | change into pyinstaller

hi friendsšŸ‘‹ i use PyQt5 to make GUI programs šŸ“š is there any way to change something in pyinstaller when it convert py to exe? for example : i use two TextEdit and a Button when i convert it to exe its size is so big (simple program) ! because pyinstaller puts all of PyQt5 in exe šŸ˜‘ can i edit pyinstaller to set just put classes thats i import in python file? its very important to me because i love python and Gui too! and i don't want to get big size program from pyinstaller if another thing can help me please say ā¤ thanks from allā¤

14th Jun 2019, 10:46 PM
#rez
#rez - avatar
1 Resposta
+ 2
When you convert a python script to exe file using pyinstaller. What it does is that, it bundles Python Interpreter and script's dependencies (In this case PyQt5) into a single stand-alone distribute folder/file (depends upon setting). As far as I know you can't just have classes in it. It doesn't work that way.
15th Jun 2019, 3:58 AM
Ekansh