I am trying to create a exe file from .py file using pyinstaller but after creating the exe file... it's not working... plz help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I am trying to create a exe file from .py file using pyinstaller but after creating the exe file... it's not working... plz help

Pyinstaller

2nd Feb 2021, 10:48 AM
Sinjini Das
Sinjini Das - avatar
12 Answers
+ 3
my bad its not online, but this is what worked for my little app. https://pypi.org/project/auto-py-to-exe/
3rd Feb 2021, 1:36 AM
Slick
Slick - avatar
+ 3
pyinstaller Yourfile.py Or: python3 -m pyinstaller Yourfile.py
9th Oct 2021, 5:09 AM
Sancho Godinho
Sancho Godinho - avatar
+ 2
Thanks... guys... the exe file is working fine... I forgot to write root.mainloop which is why it was running with idle but not from command line.... once it's working with command line... the exe with pyinstaller was also working...😁✌
6th Feb 2021, 3:27 PM
Sinjini Das
Sinjini Das - avatar
+ 1
What kind of gui library are you using?
2nd Feb 2021, 11:39 AM
Slick
Slick - avatar
+ 1
Okay, and are there any errors thrown or does it just not respond when you click on the icon?
2nd Feb 2021, 12:02 PM
Slick
Slick - avatar
+ 1
Gotcha, and ypu are able to just run the gui through python correct?
2nd Feb 2021, 12:08 PM
Slick
Slick - avatar
+ 1
okay, it honestly may be a problem with the process to make it into an exe. How many times have you tried? and which version of pyinstaller are you using. I beleive they also have a web gui version that may also be an option
2nd Feb 2021, 7:32 PM
Slick
Slick - avatar
+ 1
Try python module auto-py-to-exe Or cxfreeze module to convert py to exe
3rd Feb 2021, 6:15 AM
Yogesh Singh
Yogesh Singh - avatar
0
PIL, tkinter
2nd Feb 2021, 12:01 PM
Sinjini Das
Sinjini Das - avatar
0
No nothing is showing... when clicking it's just blinks a black screen for split of a second and then nothin
2nd Feb 2021, 12:05 PM
Sinjini Das
Sinjini Das - avatar
0
Yes
2nd Feb 2021, 12:13 PM
Sinjini Das
Sinjini Das - avatar
0
I have tried at least 4-5 times...I'm using pyinstaller 4.2 and my python version is 3.7... web gui version?! Ok...
3rd Feb 2021, 1:29 AM
Sinjini Das
Sinjini Das - avatar