Standalone Python EXE Executable - Python Tkinter GUI Tutorial #40

  Рет қаралды 307,843

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.

Пікірлер: 767
@bitpilot79
@bitpilot79 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 4 жыл бұрын
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 4 жыл бұрын
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_ 7 ай бұрын
NO in the pyinstaller just use --noconsole and no console will apear
@youzuko
@youzuko 6 ай бұрын
@@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.
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com Take $30 off with coupon code: youtube1
@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!
@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
@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!
@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
@MitraElectronics
@MitraElectronics 3 жыл бұрын
Thanks for this tutorial, I had been trying to do that since ages. Really appreciate your work.
@Codemycom
@Codemycom 3 жыл бұрын
Glad you liked it
@AdAstraCan
@AdAstraCan 3 жыл бұрын
I just signed up for the full membership. Thanks for making useful videos.
@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!
@slasaru
@slasaru 3 жыл бұрын
Thank you so much for the info that I can clean up everything besides the main file!
@jacinthompeteye3037
@jacinthompeteye3037 2 жыл бұрын
Great tutorial, we can also add '--noconsole' in the command prompt to hide the black window
@aszaw5342
@aszaw5342 Жыл бұрын
or simply -w
@sammiyin3516
@sammiyin3516 4 жыл бұрын
Suuuuuuuuuuuuper helpful tutorial. Thank you John!
@Codemycom
@Codemycom 4 жыл бұрын
Happy to help!
@unknowngalaxy7850
@unknowngalaxy7850 2 жыл бұрын
Thanks for this tutorial! Finally my school project has been completed. 🙂
@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.
@hareknowsnone
@hareknowsnone 4 жыл бұрын
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?
@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?
@vishalsalvankar9373
@vishalsalvankar9373 4 жыл бұрын
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?
@dandisinfographicchannel1346
@dandisinfographicchannel1346 4 жыл бұрын
hello, i have a problem with this method when i try to run the program on my other pc
@moazzamqureshi7150
@moazzamqureshi7150 4 жыл бұрын
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.
@otisbeaumont6797
@otisbeaumont6797 4 жыл бұрын
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 KZbin 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 4 жыл бұрын
Glad you're enjoying the videos! Yeah -w works.
@RyanDanielG
@RyanDanielG 2 жыл бұрын
wow cant believe I hadn't run across this before. thanks, mate!
@Codemycom
@Codemycom 2 жыл бұрын
Sure thing
@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)
@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
@isurangacooray9238
@isurangacooray9238 3 жыл бұрын
You're the best sir ❤️ thanks a lot for this whole playlist
@Codemycom
@Codemycom 3 жыл бұрын
You're very welcome!
@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
@Seddik-hf4pc
@Seddik-hf4pc 3 жыл бұрын
pyinstaller -w --onefile --icon=codemy.ico entry_height.py -w (to avoid cmd console) Thanks for tutorial man!
@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
@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
@sundancekid90
@sundancekid90 3 жыл бұрын
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.
@sarthakgoel7697
@sarthakgoel7697 4 жыл бұрын
What about if we have more than one window in our program with more ico files and png files
@TaskForce141cod
@TaskForce141cod 2 жыл бұрын
Adding --noconsole does the job perfectly!
@burndowntheworld
@burndowntheworld 2 жыл бұрын
Or no exe and just pyw
@mdzohaib7368
@mdzohaib7368 4 жыл бұрын
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.
@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
@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 ;-)
@ShashwataSaha
@ShashwataSaha 3 жыл бұрын
What if my python project got multiple files linked with eachother?
@manigandandmx
@manigandandmx 2 жыл бұрын
Bitdefender antivirus is detecting the stand alone EXE file as virus and keeps on removing it as soon I create it. Please advise.
@code6259
@code6259 3 жыл бұрын
your a boss sir i watched all your videos there amasing sirtenly with your dog
@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
@joselatorre5667
@joselatorre5667 3 жыл бұрын
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?
@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
@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
@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
@eugenecedis18
@eugenecedis18 4 жыл бұрын
Thanks. Well appreciated
@Codemycom
@Codemycom 4 жыл бұрын
You're 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 ...
@manojkumarleo
@manojkumarleo 4 жыл бұрын
Awesome Sir, This helps a lot.
@Codemycom
@Codemycom 4 жыл бұрын
Glad to hear that
@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!
@somj5740
@somj5740 4 жыл бұрын
Please tell me if I have some text file which I am showing in this text widget then how to make exe
@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
@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.
@Mirador1
@Mirador1 2 жыл бұрын
Is it impossible to save information in an external file with these standalone files? Like settings, etc. I mean, like internally.
@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 :)
@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
@aklimaakterrimi3814
@aklimaakterrimi3814 3 жыл бұрын
Hey elder.. i have done everything, instead of running my exe , it shows error 'unhandled exception' .. what should i do?
@tishaanants
@tishaanants 3 жыл бұрын
Which method do u prefer for creating a standalone exe
@sinamobasheri3632
@sinamobasheri3632 4 жыл бұрын
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 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@beezeruk1
@beezeruk1 4 жыл бұрын
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
@m_abhijit_
@m_abhijit_ 3 жыл бұрын
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 2 ай бұрын
Did u figure it out
@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
@rogerperez9856
@rogerperez9856 8 ай бұрын
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.
@codegeassprogramming
@codegeassprogramming 2 жыл бұрын
If we import other libraries the converted exe file do not have that libraries
@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?
@adotac
@adotac 2 жыл бұрын
how will this work if my program needs to have atleast multiple scripts? do I just build from my main script?
@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
@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'
@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.
@mukulM2010
@mukulM2010 4 жыл бұрын
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 4 жыл бұрын
Use absolute path's In your code, instead of 'file.mp3' type 'c:/whatever/file.mp3' ?
@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...
@nihalthannegedarapremaratn2352
@nihalthannegedarapremaratn2352 2 жыл бұрын
if it is a big program (with dashboard and other..mysql), can we run like this..?
@alfoxgamer
@alfoxgamer 4 жыл бұрын
Does someone know to how to sign the .exe , because I send test files to my friends to beta test and in other computers my program starts SmartScreen of windows or Avast, so i think it might seem like a virus to their computers.
@mariohart7017
@mariohart7017 4 жыл бұрын
Same
@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?
@uninho1985
@uninho1985 3 жыл бұрын
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 3 жыл бұрын
sorry I don’t use selenium so I couldn’t say
@icodeint2780
@icodeint2780 3 жыл бұрын
I did all, but when I click on the exe, I have the console only the poo open, then shut off after seconds, I have tkinter and other modules used
@Se_1364
@Se_1364 4 жыл бұрын
my program need a text file to read from ..how to add that file ?
@Codemycom
@Codemycom 4 жыл бұрын
how to add a text file? just save a text file in your directory...
@raghvendra87
@raghvendra87 4 жыл бұрын
Thank you Mr. White!
@Codemycom
@Codemycom 4 жыл бұрын
You bet
@subtemprodrigoes8164
@subtemprodrigoes8164 3 жыл бұрын
It's Mr. Elder, what the hell?
@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
@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?
@msai3012
@msai3012 3 жыл бұрын
How to make exe file if i have database?? how can i include db to the end user?/
@Lweirday
@Lweirday 3 жыл бұрын
what should i do and how to use pyinstaller if i have one python file and one folder contain database and other folder contain images??????
@gbilo24
@gbilo24 2 жыл бұрын
Use thanks for this amazing free content!
@tejasgoyal9590
@tejasgoyal9590 4 жыл бұрын
Can anyone help? how to add dependencies to the single .exe? My program just opens a cmd for a second a closes automaticaly. No Display is obtained. Python 3.7.1 PyInstaller 3.6
@febrirasyiid4808
@febrirasyiid4808 4 жыл бұрын
I also run to the same problem, did you solve it?
@techwithdavid06
@techwithdavid06 3 жыл бұрын
Hey I don't know if pyinstaller works on python 3.6 because I'm getting an error when I try to pip install pyinstaller
@Codemycom
@Codemycom 3 жыл бұрын
it should
@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
@christiankusi2974
@christiankusi2974 3 жыл бұрын
need your help i created a exe file with pyinstaller but each time i open it close immediately but when i run it from the PyCham IDE it works. please help me convert it into an exe file
@Codemycom
@Codemycom 3 жыл бұрын
Sorry, I don't do pycharm
@jamtheham5003
@jamtheham5003 4 жыл бұрын
Sir when i run the exe, its telling "failed to execute script message_sender" . How to fix it? I use python 3.8
@Codemycom
@Codemycom 4 жыл бұрын
You'll have to google that error
@NeooNovaa
@NeooNovaa 6 ай бұрын
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?
@rajatpatel1817
@rajatpatel1817 4 жыл бұрын
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 4 жыл бұрын
Good tip
@mukulM2010
@mukulM2010 4 жыл бұрын
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 2 жыл бұрын
@@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.
@giancarlo.sotelo
@giancarlo.sotelo 4 жыл бұрын
I tried to use 'Pandas' and at the moment I click on the .exe file inside 'dist' folder a error message pops up saying 'No module named pandas'. But I have installed pandas on my virtual environment. Somebody any clue that can help me? thanks.
@danieldossantos5868
@danieldossantos5868 4 жыл бұрын
I'm having the same issue with rply
@cesaryoshikawa7656
@cesaryoshikawa7656 3 жыл бұрын
my .exe file simply doesn't open. No error message even if I use cmd to open it. I sent the file to a friend and he could open it. I think it is related to my Windows. Any suggestions?
@vikaskatla3336
@vikaskatla3336 3 жыл бұрын
its due to icon u added to ur program or the path you mentioned in your code
@darshanadenuwan2690
@darshanadenuwan2690 3 жыл бұрын
Sir, I shared my python executable file with other Computer, and i run it but showing some error. error name - Fatal error detected showing- "Failed to execute script (python file name) (that computer has not Python) Can you solve this? How we share our program executable application with our friends correctly?
@ToxicRa1n4
@ToxicRa1n4 2 жыл бұрын
any insight on how to package Selenium with this? Thanks!
@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.
@saigopal4361
@saigopal4361 3 жыл бұрын
Hi! I made an exe file using the same process as in the video and successfully got exe file. I used a logo which I saved in the same project folder. I cut the app from dist folder to desktop and it still works fine. So I shared the exe file (through Whatsapp) to some of my friends and when they run it they get the error "Failed to execute script main" Why has this happened ? Is there any way I can share exe file with others(with windows os) such that they don't require to have any additional files to support running of the app. Someone please help me
@adewebs
@adewebs 10 ай бұрын
Hey, do you get a fix for this?
@Rshers
@Rshers 2 жыл бұрын
How do i change the icon when using the -m (No console)?
@manakwadhwa
@manakwadhwa 4 жыл бұрын
I have a main.py file it has a dependency new.py and new.py has another dependencies when i run pyinstaller on main.py it makes exe for main.exe only and for other dependencies it is poping up a terminal and not showing anything can you help.
@Codemycom
@Codemycom 4 жыл бұрын
Yeah pyinstaller is a little shaky
@anirudhpraveen7410
@anirudhpraveen7410 Жыл бұрын
The exe file does not run on another system as the icon file is not present in the other system. Any solution for this?
@Alinear285
@Alinear285 4 жыл бұрын
I get a winerror that says that he is not allowed to access the folder. How do you fix this?
@Codemycom
@Codemycom 4 жыл бұрын
without knowing the exact error, I can't say. You can always google the error.
@x6Blade9x
@x6Blade9x 3 жыл бұрын
This application can be ran on a computer that hasn't installed Python and set the file path ?
@Codemycom
@Codemycom 3 жыл бұрын
yes
@nemithafernando5756
@nemithafernando5756 3 жыл бұрын
I made a text editor and when I was convert it to an exe file Windows defender is blocking it Please I want your help
@Codemycom
@Codemycom 3 жыл бұрын
Windows defender blocks any apps it doesn't recognize, not just tkinter.
@RDKCREATIONS
@RDKCREATIONS 2 жыл бұрын
i have a json file in my project how can i do it
Remove Labels - Python Tkinter GUI Tutorial #41
9:58
Codemy.com
Рет қаралды 63 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 503 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 15 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 13 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 106 МЛН
Convert Tkinter Python App to Executable (.Exe) File [pyinstaller]
9:11
Code First with Hala
Рет қаралды 138 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 35 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Standalone Python EXE Executable - Python Kivy GUI Tutorial #20
13:00
Convert Python To Exe Files
8:20
NeuralNine
Рет қаралды 69 М.
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 58 М.
Convert py to exe - from code to software
5:55
Python Simplified
Рет қаралды 469 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 15 МЛН