Standalone Python EXE Executable - Python Tkinter GUI Tutorial #40

  Рет қаралды 302,013

Codemy.com

Codemy.com

4 жыл бұрын

In this video I'll show you how to turn your Python tKinter program into a standalone executable exe file that you can share with your friends, or sell on your website.
There are many ways to make a .exe file out of a tKinter program. In this video I'll show you the fastest and easiest method using pyinstaller.

Пікірлер: 765
@totex1979
@totex1979 4 жыл бұрын
Use the flag --windowed, so that black console window won't show up.
@Codemycom
@Codemycom 4 жыл бұрын
perfect! thanks!
@Kroenenprime
@Kroenenprime 4 жыл бұрын
You can also just save your file as .pyw it does the same
@Codemycom
@Codemycom 4 жыл бұрын
@@Kroenenprime That only works if you already have python installed on your computer...most people don't.
@davitvekua6878
@davitvekua6878 4 жыл бұрын
oohh man thank u so much!
@danielrichter4103
@danielrichter4103 4 жыл бұрын
Thanks that was really helpful
@MadhuKraft
@MadhuKraft 3 жыл бұрын
Before you turn it into a exe, rename the file to .pyw instead of .py That will get rid of the command prompt that always shows up
@Codemycom
@Codemycom 3 жыл бұрын
or just use the -w flag when building the exe
@mohammadrezasharif843
@mohammadrezasharif843 2 жыл бұрын
I tried this but "Ordinal Not Found" error shows up when I run the exe.
@unknowngalaxy7850
@unknowngalaxy7850 2 жыл бұрын
Thank you very much
@Brimstoned_
@Brimstoned_ 5 ай бұрын
NO in the pyinstaller just use --noconsole and no console will apear
@youzuko
@youzuko 4 ай бұрын
@@Brimstoned_ i tried to use the --noconsole but windows flagged it as virus. same with -w. no idea why, it works just fine without getting rid of the console.
@popotoITA
@popotoITA Жыл бұрын
in order to avoid the "command window" to pop up when you run the executable, you just have to write "-- noconsole" along with the pyinstaller call
@Matt-ke7mc
@Matt-ke7mc 4 жыл бұрын
This was great!! So straightforward and useful. I was able to build a front end GUI app for my python script at work because of this video. Awesome job man.
@Codemycom
@Codemycom 4 жыл бұрын
Glad it helped!
@AdAstraCan
@AdAstraCan 3 жыл бұрын
I just signed up for the full membership. Thanks for making useful videos.
@Sergio-td7mn
@Sergio-td7mn 4 жыл бұрын
I watched many parts of the series and its awesome, thank you John!
@Codemycom
@Codemycom 4 жыл бұрын
Glad you're enjoying it!
@kingsleyemeka2136
@kingsleyemeka2136 4 жыл бұрын
Yeah, me too You're a great teacher
@benjaminodriscoll6605
@benjaminodriscoll6605 4 жыл бұрын
Thanks for the video and the entire playlist, it has been so helpful! Subscribed and liked!
@Codemycom
@Codemycom 4 жыл бұрын
Glad you're enjoying them!
@MitraElectronics
@MitraElectronics 2 жыл бұрын
Thanks for this tutorial, I had been trying to do that since ages. Really appreciate your work.
@Codemycom
@Codemycom 2 жыл бұрын
Glad you liked it
@jacinthompeteye3037
@jacinthompeteye3037 2 жыл бұрын
Great tutorial, we can also add '--noconsole' in the command prompt to hide the black window
@aszaw5342
@aszaw5342 Жыл бұрын
or simply -w
@slasaru
@slasaru 3 жыл бұрын
Thank you so much for the info that I can clean up everything besides the main file!
@unknowngalaxy7850
@unknowngalaxy7850 2 жыл бұрын
Thanks for this tutorial! Finally my school project has been completed. 🙂
@allenhirahara2242
@allenhirahara2242 3 жыл бұрын
THANK YOU. I was trying to look up how to make an executable .exe, but the program that you used to make the .exe actually helped me with my program. I had a problem with inputting the text into the same window and the "myLabel = tkinter.Label(root, text) " helped. Thank you!
@Codemycom
@Codemycom 3 жыл бұрын
Glad I could help!
@officialkeeto
@officialkeeto Жыл бұрын
-w (or --windowed, or --noconsole) This will get rid of the blank CMD from popping up during launch --name="" This will name the app differently from your . py file --icon= (note, if you have your images in sub folders you need to use the path to that folder. Example: images/lock.ico --onefile (this one is hit and miss. Sometimes I do without this one to get app running right)
@sammiyin3516
@sammiyin3516 3 жыл бұрын
Suuuuuuuuuuuuper helpful tutorial. Thank you John!
@Codemycom
@Codemycom 3 жыл бұрын
Happy to help!
@hareknowsnone
@hareknowsnone 3 жыл бұрын
Try to run this 'standalone program' in any other windows computer( if possible except windows10 ) . It does not work for me at least. Also will it work on other os?
@arturdashev5353
@arturdashev5353 Жыл бұрын
IT'S ALWAYS THE UNDERRATED VID THAT'S LEGIT! THANK YOU!
@Codemycom
@Codemycom Жыл бұрын
Thanks...but I wouldn't call a video with 200,000+ views underrated ;-)
@TaskForce141cod
@TaskForce141cod 2 жыл бұрын
Adding --noconsole does the job perfectly!
@burndowntheworld
@burndowntheworld 2 жыл бұрын
Or no exe and just pyw
@Seddik-hf4pc
@Seddik-hf4pc 3 жыл бұрын
pyinstaller -w --onefile --icon=codemy.ico entry_height.py -w (to avoid cmd console) Thanks for tutorial man!
@RyanDanielG
@RyanDanielG 2 жыл бұрын
wow cant believe I hadn't run across this before. thanks, mate!
@Codemycom
@Codemycom 2 жыл бұрын
Sure thing
@vicesodan
@vicesodan 2 жыл бұрын
Tip: Application won't start without icon next to it on another pc if you use an icon instead of tkinter default icon on its windows, check the path of the icon in python code also
@Elijah3_86
@Elijah3_86 2 жыл бұрын
Did you make a later videos for better ways to do this? Pyinstaller makes the program run really slowly on another computer
@vishalsalvankar9373
@vishalsalvankar9373 3 жыл бұрын
Hey John, I was successful in creating python exe file, but while using tjr same file on another computer, it got detected as a virus. Basically any exe file which i create is shown as a virus. How can i solve this problem other than adding the file as exception in any antivirus software?
@stephenwilson0386
@stephenwilson0386 2 жыл бұрын
I'm having issues with Windows Defender flagging my exe file as a Trojan. It only seems to happen when I use the --onefile flag, but it defeats some of the purpose of packaging my script if my coworkers have to keep the two directories as they are in order to use the program. Sending one executable file would be much cleaner. Does anyone have any suggestions?
@giuseppecipolletta1443
@giuseppecipolletta1443 3 жыл бұрын
Hi John! Thanks for this! What if I have a picture in my code? Is there a way to specify it as we do with the icon?
@giuseppecipolletta1443
@giuseppecipolletta1443 3 жыл бұрын
Ive tried with --add-data but it doesn't seem to work: pyinstaller.exe --onefile --icon=Icon3.ico --add-data="Image.png;img" PySprings.py
@holycow4889
@holycow4889 3 жыл бұрын
I had several issues when i was triying to turn my TK application into an .exe file. In case you have some issues as well(not opening etc) use auto-py-to-exe. >>pip install auto-py-to-exe < to install it >>auto-py-to-exe < to open it -I hope i could help for those people that are having problems :)
@raghvendra87
@raghvendra87 3 жыл бұрын
Thank you Mr. White!
@Codemycom
@Codemycom 3 жыл бұрын
You bet
@subtemprodrigoes8164
@subtemprodrigoes8164 3 жыл бұрын
It's Mr. Elder, what the hell?
@mdzohaib7368
@mdzohaib7368 3 жыл бұрын
Sir i created a weather app which you shown in 24th video in your playlist but i did some changes adding images of cloud and other weathers but when i try to convert it to exe file its showing error. I think thats probably due to images of clouds and all. Can you tell me command to rectify it.
@code6259
@code6259 3 жыл бұрын
your a boss sir i watched all your videos there amasing sirtenly with your dog
@gbilo24
@gbilo24 Жыл бұрын
Use thanks for this amazing free content!
@nexgenofficial665
@nexgenofficial665 3 жыл бұрын
wowwww! i just made my first executable file! Thanks.
@Codemycom
@Codemycom 3 жыл бұрын
Awesome!
@Codemycom
@Codemycom 3 жыл бұрын
@زاكي Zaky did you pip install it?
@sundancekid90
@sundancekid90 2 жыл бұрын
Thanks for the video it was a huge help! Now I have made my executable is there a way to update it? I can't seem to find a way to make changes without deleting the exe and installing again with the new source code.
@isurangacooray9238
@isurangacooray9238 3 жыл бұрын
You're the best sir ❤️ thanks a lot for this whole playlist
@Codemycom
@Codemycom 3 жыл бұрын
You're very welcome!
@scoliidaeai493
@scoliidaeai493 3 жыл бұрын
save the .py file as a .pyw , it runs the exact same as a regular python file but runs without the shell window
@SanyogLamsal
@SanyogLamsal 2 жыл бұрын
Underrated Comment
@DanielMemeSmith
@DanielMemeSmith 2 жыл бұрын
@@SanyogLamsal not underrated. see other comments
@SanyogLamsal
@SanyogLamsal 2 жыл бұрын
@@DanielMemeSmith This one worked for me.
@moazzamqureshi7150
@moazzamqureshi7150 3 жыл бұрын
What if our program uses some images ? can we still run the exe file isolated without those ..? since i got an error
@akshitmiglani5419
@akshitmiglani5419 3 жыл бұрын
You'll have to put that image into the temp directory where the back-end files of stand-alone app are created.
@manojkumarleo
@manojkumarleo 3 жыл бұрын
Awesome Sir, This helps a lot.
@Codemycom
@Codemycom 3 жыл бұрын
Glad to hear that
@eugenecedis18
@eugenecedis18 4 жыл бұрын
Thanks. Well appreciated
@Codemycom
@Codemycom 4 жыл бұрын
You're welcome!
@jimbowhitt3816
@jimbowhitt3816 2 жыл бұрын
hey, great video here helped me alot. However i have a image file in my code, which when i create a .exe it launches but flags a error saying the image can't be found. am i missing something here, in my code i have the 'my_img = ImageTk.PhotoImage (Image.open("image.png"))' which maps to the location of my image in my code and works when operating though python directly. when operate through .exe basiclly says "failed to execute due to unhandled exception: [Errno 2] no such file or directory: 'image.png'
@007adityadwivedi
@007adityadwivedi 3 жыл бұрын
Hi, I am trying same thing.. But when running in other machine still its again asking me for install modules which I have used in my exe. Please suggest
@lemartien25000
@lemartien25000 3 ай бұрын
Thanks for answering
@dandisinfographicchannel1346
@dandisinfographicchannel1346 3 жыл бұрын
hello, i have a problem with this method when i try to run the program on my other pc
@neoZodiacEth
@neoZodiacEth 2 жыл бұрын
you can install auto-py-to-exe and run this int he terminal in order to convert your .py to a .exe! Also there is a setting to remove the black console window!
@varghapayandeh3024
@varghapayandeh3024 4 жыл бұрын
Thank you for the video. Of couse why not using the "--noconsole" argument to the command so it wouldn't create that console?
@Codemycom
@Codemycom 4 жыл бұрын
yes
@junmarcado445
@junmarcado445 9 ай бұрын
Thank you very much sir.
@Codemycom
@Codemycom 9 ай бұрын
Welcome
@sinamobasheri3632
@sinamobasheri3632 3 жыл бұрын
like always thank you sir for your great videos i have questions i write some code to scraping a site. it have button called "get" to do that. i use selenium for scraping when i click on button it run scraping functions while scraping functions is running tkinter window show "not responding" massage what i must do 🤦🏻‍♂️ again very thanks 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@sarthakgoel7697
@sarthakgoel7697 3 жыл бұрын
What about if we have more than one window in our program with more ico files and png files
@joselatorre5667
@joselatorre5667 2 жыл бұрын
I have a little problem, my app has images taken from an specific directory. If I want to distribute it, people would have to install these images too?. And if so... The python code takes the image from that specific directory, but for the client it would not be the same directory, so it would bring an error. Is there a way to get rid of this problem?
@paulwatterson5992
@paulwatterson5992 2 жыл бұрын
Thank You great video
@Codemycom
@Codemycom 2 жыл бұрын
Thanks
@tobias2688
@tobias2688 3 жыл бұрын
What can I do when my python file relies on some external libraries? Would I have to pack the whole library into the .exe file? Thanks!
@djremedy1694
@djremedy1694 3 жыл бұрын
Pyinstaller has the built in feature to sweep through your python script, find all the import statements, and then copy those libraries during the conversion process
@mustafamontaser4955
@mustafamontaser4955 3 жыл бұрын
thanks sir it really works!
@Codemycom
@Codemycom 3 жыл бұрын
Welcome 👍
@fcmorena246
@fcmorena246 3 жыл бұрын
Thanks for the course, i really appreciate it, i kind of have a little problem.
@Codemycom
@Codemycom 3 жыл бұрын
ok?
@fcmorena246
@fcmorena246 3 жыл бұрын
@@Codemycom I lack self-confidence when coding.
@Codemycom
@Codemycom 3 жыл бұрын
@@fcmorena246 it comes with practice
@fcmorena246
@fcmorena246 3 жыл бұрын
@@Codemycom okay thanks Sir i have another problem Yesterday I created a text editing software with pyinstaller, when I run the program it pops up an error. (Fatal Error Detected Failed to execute script ...
@bharaths1396
@bharaths1396 4 жыл бұрын
Hello Sir! Your content is Awesome... Here pyinstaller -h -F filename also works to avoid poping the black window Thank You Sir ,These videos help a lot.
@bharaths1396
@bharaths1396 4 жыл бұрын
-w not -h I am sorry
@rogerperez9856
@rogerperez9856 6 ай бұрын
Hello, I have created an app in Python which must connect to a database, but I want to extract the credentials from the code and make an executable to put it into production. The problem is that one way or another the user has access to the credentials, whether they put them in the code or include the .env file with the executable. Anyway, I don't know what to do to prevent users from having access to the credentials, I would like to know how I can do so that only the app has access to the credentials. Greetings.
@BrazybranButOutside
@BrazybranButOutside 2 жыл бұрын
The computer I coded the .py file on, once turned into an .exe file, still works perfectly, until I move it to another computer for download. When I do so its detected as a virus. I would like to sell software soon so this is an issue I'd love to eliminate. I'm still learning, but to test converting .py into .exe I made a simple calculator program. Not very modern visually and not too many lines of code. But it still is flagged on other computers. Help plz!
@sinuheso
@sinuheso 3 жыл бұрын
Hi there,thanks for your videos. I have a question, im working in a GUI using tkinter, the python file size is 257 KB. When i create executable using pyinstaller, the size of the GUI is 100 MB. What could be the reason?
@Codemycom
@Codemycom 3 жыл бұрын
exe files are bigger. that's common
@7s9n
@7s9n 2 жыл бұрын
You must create a virtual environment for your project 🙂
@sinuheso
@sinuheso 2 жыл бұрын
@@7s9n Thank you
@7s9n
@7s9n 2 жыл бұрын
@@sinuheso Your welcome 💛
@brucenik9168
@brucenik9168 3 жыл бұрын
Great job. Can you please tell me what you use for screen capture and video editing for that amazing clean green effect? Also, what microphone you use? :)
@Codemycom
@Codemycom 3 жыл бұрын
sorry, state secret :-p
@Codemycom
@Codemycom 3 жыл бұрын
@Aanshumaan Shrijai VII C no, I don't talk about that stuff
@otisbeaumont6797
@otisbeaumont6797 3 жыл бұрын
Hey John, Thanks for your videos. I am on vacation leave and started learning Python and Tkinter on my own with the help of some Google searches and KZfaq videos such as yours. Your Videos are super great! In a way, 'thanks for the pandemic lock down'. Well understand me. If you type a single - and a w (-w) after you typed the icon+"name".ico that command prompt will not show up. again, thanks for your videos.
@Codemycom
@Codemycom 3 жыл бұрын
Glad you're enjoying the videos! Yeah -w works.
@staytuned3092
@staytuned3092 3 жыл бұрын
Thanks a lot. Great video and helpful comments who made the black window disappear. It works for me just on 64bit Windows not on 32. Can I fix that somehow? Is there a way to make an APK file out of this?
@math4engzz664
@math4engzz664 4 жыл бұрын
Great video! However, I get a ridiculously large exe file (~200 MB) for a fairly basic project (a couple of functions and nearly 100 lines of code). Any tips to reduce file size?
@Codemycom
@Codemycom 4 жыл бұрын
no sorry...no idea what's going on there
@yogeshchandrasekharuni2727
@yogeshchandrasekharuni2727 4 жыл бұрын
you might want to look at what all you're importing. Import only the methods you need and not the entire library. For example: from sklearn.metrics import accuracy_score instead of from sklearn import metrics
@SaiKrishna-nc7uq
@SaiKrishna-nc7uq 3 жыл бұрын
I think you create virtualenv for your project to reduce size of exe file.
@Mirador1
@Mirador1 2 жыл бұрын
Is it impossible to save information in an external file with these standalone files? Like settings, etc. I mean, like internally.
@haseebali8139
@haseebali8139 4 жыл бұрын
hey john I use this method to make an executable file of flashcard app and a flashcard.exe is made but when I run a cmd window pop up and after some seconds it closes showing something traceback type error and the actual file is not run yet
@Codemycom
@Codemycom 4 жыл бұрын
use the -w flag when you compile it
@tomoyaokazaki9915
@tomoyaokazaki9915 3 жыл бұрын
Sir I made the app with pyinstaller I opened it in my pc its working totally fine but when I shared only the .exe file of my app to my friend then in his pc that app is not opening [He goes in the location where my app is saved and clicks it and installs it and then when he opens only that black command line window appears then after 2-3seconds the command line box disappears and the application window doesn't appears.] Help me fix the problem sir
@m_abhijit_
@m_abhijit_ 2 жыл бұрын
What do to if i have many pictures embedded inside my tkinter gui , is it possible to create a standalone for that type of file which contains alot of pics packed ?
@dustybeats5620
@dustybeats5620 28 күн бұрын
Did u figure it out
@nder4786
@nder4786 3 жыл бұрын
Awsome, helped me alot
@Codemycom
@Codemycom 3 жыл бұрын
Glad it helped!
@mahanaatma910
@mahanaatma910 2 жыл бұрын
i learned how to put icon in exe file so thankyou
@Codemycom
@Codemycom 2 жыл бұрын
welcome
@matthewburton3469
@matthewburton3469 4 жыл бұрын
Just wondering if firebase is supported by pyinstaller because I am struggling to try and convert my .py file with tkinter gcloud and smtplib into a .exe
@Codemycom
@Codemycom 4 жыл бұрын
No idea, sorry
@FouadMohamed_Dragon.2033
@FouadMohamed_Dragon.2033 Жыл бұрын
I am making a program in the Python language on the Tekinter library, and when I convert the program to an exe file, it does not record with me any record from the printer, while I am running from the editor, the recording takes place, and I do not know where the problem is exactly
@atom9885
@atom9885 3 жыл бұрын
thank you so much steve jobs
@Codemycom
@Codemycom 3 жыл бұрын
:-)
@somj5740
@somj5740 3 жыл бұрын
Please tell me if I have some text file which I am showing in this text widget then how to make exe
@ToxicRa1n4
@ToxicRa1n4 2 жыл бұрын
any insight on how to package Selenium with this? Thanks!
@beezeruk1
@beezeruk1 3 жыл бұрын
Hi John, First an apology in my first comment I thought your name was Danial Sorry about that. I really like your teaching style and hope you can help with my enquiry about reading the IOT ESP8266 unit. Thanks Len Beasley
@omarabdelfattah9836
@omarabdelfattah9836 3 жыл бұрын
very good video and very easy method thanks a lot
@Codemycom
@Codemycom 3 жыл бұрын
Glad you liked it
@aklimaakterrimi3814
@aklimaakterrimi3814 2 жыл бұрын
Hey elder.. i have done everything, instead of running my exe , it shows error 'unhandled exception' .. what should i do?
@amitkore9344
@amitkore9344 3 жыл бұрын
Hi, Do you know other ways of deploying the application. like moving the exe to the server and calling the exe on client machines, so other users can't decode the exe (as there are ways to decode). considering use of exe in a organization, where i don't want users to see my code (specially credentials used in code like for database connection)
@Codemycom
@Codemycom 3 жыл бұрын
No. Exe is the only way.
@nihalthannegedarapremaratn2352
@nihalthannegedarapremaratn2352 2 жыл бұрын
if it is a big program (with dashboard and other..mysql), can we run like this..?
@adotac
@adotac 2 жыл бұрын
how will this work if my program needs to have atleast multiple scripts? do I just build from my main script?
@pranathipoojary9127
@pranathipoojary9127 3 жыл бұрын
The .py file I'm trying to change contains sqlite3 and the .exe file created won't work, but when I try it without any of the database stuff the .exe file works. I even tried placing the database file in the same folder as the .exe file but it still doesn't work. Is there something different for sqlite3?
@yerisfernandez5105
@yerisfernandez5105 3 жыл бұрын
Hi.. I did some programs with tkinter and sqlite3, I have no problems to convert to .exe In my case, the first time a run the .exe the program create the database file... So the app create the sqlite3 file in the same folder of .exe file... And everything works great.. hope this information can help you.
@anokhautomation4453
@anokhautomation4453 2 жыл бұрын
Useful tutorial. 👍 Can you explain how we can convert a python script contains sone photo image to exe file. Ii will be more interesting.
@ShashwataSaha
@ShashwataSaha 3 жыл бұрын
What if my python project got multiple files linked with eachother?
@rajatpatel1817
@rajatpatel1817 3 жыл бұрын
For people who have used images and icons in their code, you need to have those images and icons in the same folder as in code for it to work. a little tip here: keep all your images and icons in a single folder such as 'resources' and change your code so that those images can be read from resources directory. this way, you will only have one exe file and the rest in the resouces folder. clean and efficient.
@Codemycom
@Codemycom 3 жыл бұрын
Good tip
@mukulM2010
@mukulM2010 3 жыл бұрын
Hey I'm getting the "File not found" or "File not defined" error as I have images and sounds in my python code. How do I set the file path of these images in my python code so that the executable works on any other computer? Like even if I copy them in a single folder... the .filepaths need to be updated in the .py file
@thedude6213
@thedude6213 Жыл бұрын
@@mukulM2010 Hey, so i can see you commented this a year ago but I'm trynna figure this out myself. Did you find a solution?
@djbroake9810
@djbroake9810 Жыл бұрын
@@thedude6213 'folder/file.x' should work in the scrip, then keep x files in x folder next to the exe.
@codegeassprogramming
@codegeassprogramming 2 жыл бұрын
If we import other libraries the converted exe file do not have that libraries
@garyclayton6212
@garyclayton6212 Жыл бұрын
Just seen your video #40 - I did look below but couldn't see a comment about this so sorry if already there. To stop the terminal window just add "--noconsole" to the command line. Regards.
@uninho1985
@uninho1985 2 жыл бұрын
How can I do that when I use a tkinter GUI and selenium with a dir "User Profile" for my chrome profile? I keep getting the error "failed to executescript". I tried adding the folder, I tried adding it manually after compiling the .py file to .exe and so on. Nothing worked for me. Any tip?
@Codemycom
@Codemycom 2 жыл бұрын
sorry I don’t use selenium so I couldn’t say
@mukulM2010
@mukulM2010 3 жыл бұрын
Hey I'm getting the "File not defined" or "File not found" error as I have images and sounds in my python code. How do set the file path of these images in my python code so that the executable works on any other computer?
@Codemycom
@Codemycom 3 жыл бұрын
Use absolute path's In your code, instead of 'file.mp3' type 'c:/whatever/file.mp3' ?
@hawrezangana8240
@hawrezangana8240 2 жыл бұрын
Thanks for the valuable video. You can use --noconsole to get rid of the console.
@carlosortega7363
@carlosortega7363 3 жыл бұрын
My Command Prompt does not recognize "pip" install unless I am in the directory with pyinstaller. Is that how it's supposed to work? Its seems like in all of the examples they just run "pip install pyinstaller" from wherever.
@Codemycom
@Codemycom 3 жыл бұрын
No, you need to reinstall python. Click the "add python 3.9 to path" box during installation
@carlosortega7363
@carlosortega7363 3 жыл бұрын
@@Codemycom That worked, thanks!
@severinmarco
@severinmarco Жыл бұрын
hi, is it possible to include an icon in the title bar so that when I create an executable .exe it is incorporated in it without having to carry it around every time? for example if I change pc?
@Codemycom
@Codemycom Жыл бұрын
yes, check the docs.
@severinmarco
@severinmarco Жыл бұрын
@@Codemycom Thanks for your quick response, I followed your video, the problem lies in the fact that when I create the executable file and move it to another PC, if the .ico file is not present, it also returns an error because it cannot find the path
@Codemycom
@Codemycom Жыл бұрын
@@severinmarco exe are stand alone files. Read the docs to learn how to include your icon.
@mrpad6189
@mrpad6189 4 жыл бұрын
Thanks !
@Codemycom
@Codemycom 4 жыл бұрын
You're welcome!
@shakibrahatchowdhury626
@shakibrahatchowdhury626 Жыл бұрын
What would happen if the end user doesn't have all the dependencies available in their system? For example, someone downloads the exefile from internet and the user doesn't have phyton installed in the computer; what that still run?
@Codemycom
@Codemycom Жыл бұрын
yes
@NeooNovaa
@NeooNovaa 4 ай бұрын
The file that I installed needed SQLite database to work, and when I run the project I installed it can't connect to the database, how do I fix this?
@SammarpanDasguptaOfficial
@SammarpanDasguptaOfficial 3 жыл бұрын
Thanks for it
@Codemycom
@Codemycom 3 жыл бұрын
Most welcome
@goulio3679
@goulio3679 7 ай бұрын
Thanks for the explanation. For some reason after installing pyinstaller through pip, I keep getting "No module named 'pyinstaller'"
@flaviomonteiro1414
@flaviomonteiro1414 2 жыл бұрын
Hey I do belive adding --noconsole when generating the .exe does remove the black console window... I do not tested yet on a computer without python installed but if works let me know!
@Codemycom
@Codemycom 2 жыл бұрын
yep
@khaledkhalaf1884
@khaledkhalaf1884 2 жыл бұрын
Hi, I come back and see this video because after creating the exe file the tkinter entry dont accept the paste shortcut why is that? and how can I fix it?
@tishaanants
@tishaanants 2 жыл бұрын
Which method do u prefer for creating a standalone exe
@truefurey
@truefurey 6 күн бұрын
Do you have a video of how to compile multiple .py into an exe, I also am using CTk as well. I tried pyinstaller but its missing dependencies
@Codemycom
@Codemycom 6 күн бұрын
no
@truefurey
@truefurey 6 күн бұрын
@@Codemycom ended figuring it out with pyinstaller =)
@himanshubhatti4717
@himanshubhatti4717 4 жыл бұрын
sir I did it..but problem is that when I double click on my final .exe file only black window opens not the GUI window
@Codemycom
@Codemycom 4 жыл бұрын
try the -w flag in the command
@anthonytata280
@anthonytata280 4 жыл бұрын
hi, you are amazing!!! I was woundering if you are going to explain the treeview in tkinter....
@Codemycom
@Codemycom 4 жыл бұрын
Thanks! I may discuss that in the future...
@wickedsnuk3812
@wickedsnuk3812 12 күн бұрын
You are on windows right ? in mac it doesnt bring all the necessary files like this, I mean I cannot share it with others
@aayushgupta6914
@aayushgupta6914 2 жыл бұрын
Now using both --windowed and --onefile flags the exe file as a virus!! Anyway to handle that and hide that popup command prompt??
@cheasteral7636
@cheasteral7636 3 жыл бұрын
Sir can I convert py to exe including sqlite3 database imported in my python app?
@sirfaboyt3395
@sirfaboyt3395 2 жыл бұрын
Do you have now a solution? I face the same problem right now... 11 Months later xD I hope you can help me now haha
Remove Labels - Python Tkinter GUI Tutorial #41
9:58
Codemy.com
Рет қаралды 62 М.
Standalone Python EXE Executable - Python Kivy GUI Tutorial #20
13:00
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,5 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 5 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 30 МЛН
How to Convert a Python File to .EXE
4:44
Programming With Nick
Рет қаралды 30 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,4 МЛН
Convert Tkinter Python App to Executable (.Exe) File [pyinstaller]
9:11
Code First with Hala
Рет қаралды 125 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 471 М.
Convert Python Files To EXE using PyInstaller | PyGame Tutorial
4:25
Coding With Russ
Рет қаралды 76 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 326 М.
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,5 МЛН