python Gui | change exe file size | change into pyinstaller | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 - avatar
1 Answer
+ 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