How to Convert any Python File to .EXE

  Рет қаралды 1,854,615

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 2 400
@TechWithTim
@TechWithTim 6 жыл бұрын
To add an icon to your .exe file to do: pyinstaller -i [iconfile] [file_name] . Making sure that your icon file is in the same directory that your cmd is in.
@tomershechner
@tomershechner 6 жыл бұрын
Whether the icon should be a certain file type? Like .ico or something?
@TechWithTim
@TechWithTim 6 жыл бұрын
Yes it should be .ico
@gormauslander
@gormauslander 6 жыл бұрын
Does this need to be done during the exe creation process or can it be done after the exe is created?
@TechWithTim
@TechWithTim 6 жыл бұрын
@@gormauslander I can't seem to remember, just try it! You should be able to see which way works or doesn't quite quickly.
@gormauslander
@gormauslander 6 жыл бұрын
@@TechWithTim cool cool will do
@SmittyWerb42
@SmittyWerb42 3 жыл бұрын
I was today years old when I found out you can type cmd into the file explorer address bar to open a command prompt already directed at that folder. Amazing.
@WhoUt
@WhoUt 3 жыл бұрын
when you type something in there, first it checks if anything in that folder has that name, then it checks the system32 folder
@paulnorton2463
@paulnorton2463 3 жыл бұрын
MAN I DIDN'T KNOW THIS TOO JUST TODAY🙄🙄🙄🙄
@Nerino
@Nerino 3 жыл бұрын
Yeah man, that was a great discovery for me too
@neonn8876
@neonn8876 3 жыл бұрын
whoa whoa
@reversesunlight9670
@reversesunlight9670 3 жыл бұрын
Same
@int16_t
@int16_t 5 жыл бұрын
I love how he don't waste a time talking about sh*t and craps. Straight to the point and doesn't say a word like 'ummmmmm' 'cough!'.
@keshavapiyushprasad5439
@keshavapiyushprasad5439 5 жыл бұрын
Dude watch 4:15 He fumbles on the word command But love this guy, totally agree with you
@Kyrelel
@Kyrelel 4 жыл бұрын
He says "uhh" or "umm" several times during the video (twice in the first 30 secs, for example)
@int16_t
@int16_t 4 жыл бұрын
@@Kyrelel Right, I might be overeacting, but anyway, he talk fast!!
@gravnine
@gravnine 3 жыл бұрын
yeah, gotta hate the people who say "cough!" out loud
@HavenAWilliams
@HavenAWilliams 2 жыл бұрын
>Gives you exact timestamps to skip parts of the tutorial >Tells people when to click off, even though that will lower his engagement >Even inside the video parts he does recommend you watch, doesn't tell you to subscribe 100/10 tutorial video. Liked, commented, favorited, and subsribed.
@MadMullins
@MadMullins 2 жыл бұрын
@Tech With Tim, 31 years I have been in computers...and today I learned you can lauch command prompt from an explorer window and it opens the directory you did it in by default... Keep up the awesome content!
@satoriblue1349
@satoriblue1349 4 жыл бұрын
For everyone receiving an error when trying to install pyinstaller: I did some research and it appears that pyinstaller has code that most anti-virus software believes is a malicious trojan. I am almost certain it is a false positive (that's what everyone online has been saying) and that you can deactivate your anti-virus software briefly and the download will work. However, even though I'm pretty certain pyinstaller is safe I'm not going to fuck around and find out, I'm going to search for another way to turn script into an .exe Thank you for the video though, very useful and I'm sure I will use this method if pyinstaller fixes this issue with the next update.
@jankokert653
@jankokert653 4 жыл бұрын
3:00: I did not know that it is so simple to open a command prompt in a specific folder! This is great - thank you!!!
@cosminturtureanu692
@cosminturtureanu692 4 жыл бұрын
I've been using Left Shift + Right click but this is way faster
@berkaydemirci
@berkaydemirci 4 жыл бұрын
@@cosminturtureanu692 Left shift + right click doesnt suggest cmd anymore for me but powershell. Although right clicking in an empty space in the folder instead of on a folder or on a file stil suggests it instead of powershell and left shift isn't required.
@cosminturtureanu692
@cosminturtureanu692 4 жыл бұрын
@@berkaydemirci I've changed the registry so that they both appear when I use LShift + RMB
@RijuChatterjee
@RijuChatterjee 4 жыл бұрын
ikr. so long typing long paths
@RohanKumar-zd3pc
@RohanKumar-zd3pc 4 жыл бұрын
I searched CMD and hit enter before any option comes. And hopefully a CMD window pops up
@Cryptosonix
@Cryptosonix 5 жыл бұрын
Hey, I just wanted to say thanks for respecting our time and packing as much good info as you could in this single vid! I don't see many KZbinrs do that!
@pizzagamingps4428
@pizzagamingps4428 2 жыл бұрын
True.
@stevejohnson9030
@stevejohnson9030 2 жыл бұрын
Facts
@badasstrapbass2313
@badasstrapbass2313 3 жыл бұрын
THANK YOU. you explained how to fix a problem other KZbinrs skipped over... I honestly didn't know what to do
@rudrarathi3980
@rudrarathi3980 3 жыл бұрын
God bless you creator of this video. I was searching for this information for 5 days! seriously. I had created a python script that I want to convert into an executable file and this video gave me exact information. Thank you!!!
@kobe781
@kobe781 5 жыл бұрын
The only well-made and modern tutorial I could find, thanks a lot. Extremely easy to follow
@scifregizmoguy
@scifregizmoguy 5 жыл бұрын
Clear, concise, brief voice. You'll definitely go far with that. Great video.
@gbin21
@gbin21 5 жыл бұрын
Straight to the point.💪🏼
@rohanphilip1059
@rohanphilip1059 3 жыл бұрын
I totally agree
@jalensanders8511
@jalensanders8511 3 жыл бұрын
I can never thank Cybersolution112 on telegram enough for all he has done for me, recommending him to you all is a way of showing my appreciations to him , you can also Contact him via +13106278867 right now to help you out with all your Crypto recovery , phone hacking, tracking ,spying and unlocking of phones
@phantomphil
@phantomphil Жыл бұрын
wow! you put pip installing, pyinstaller and NSIS basic in 8 mins. awesome! thank you
@eCouchPotatoe
@eCouchPotatoe 3 жыл бұрын
I just started learning Python and all I wanted was to share my programs with a friend. A portable shareable executable. I searched for HOURS! Why this video didn't come up immediately I do not know. But it deserves 100,000 more likes.
@ahmadgalamli
@ahmadgalamli 4 жыл бұрын
1:50 You can get the Python's path by typing "where python" to cmd
@lukehebert6207
@lukehebert6207 4 жыл бұрын
Just tried it and it works, thank you!
@GwenSpanner
@GwenSpanner 4 жыл бұрын
I tried this and it said "could not find files for the given pattern(s)"
@ahmadgalamli
@ahmadgalamli 4 жыл бұрын
The unidentified anomalous baguette - I think you didn’t added Python to PATH.
@GwenSpanner
@GwenSpanner 4 жыл бұрын
I have got it in path, but if that's the reason this isn't working, then I've probably written something wrong
@hruthikshetty683
@hruthikshetty683 4 жыл бұрын
Thanks bro 👍
@stony8765
@stony8765 4 жыл бұрын
THIS IS THE BEST TUTORIAL ON THE GODDAMN PLANET THANK YOU !!!
@TheHackysack
@TheHackysack 5 жыл бұрын
Clear, concise instructions. Hard to come by these now-a-days. Thank you.
@j__x__c8823
@j__x__c8823 3 жыл бұрын
this world needs people like you.
@admontech96
@admontech96 4 жыл бұрын
Holy shit I've spent hours confused trying to understand this, and now learned it in 8 minutes start to finish. Thanks.
@davidhochstetler7981
@davidhochstetler7981 6 жыл бұрын
Super useful video dude, thanks a bunch
@thingsiplay
@thingsiplay 4 жыл бұрын
You can direct pyinstaller to include images and other needed files and folders with --add-data into the single executable. Then you do not need the extra nsis step.
@TokyoUnderworld
@TokyoUnderworld 6 жыл бұрын
Very quick and concise guide on something that is way more convoluted than it should be. Hats off to you, sir!
@Gakusangi
@Gakusangi 5 жыл бұрын
Do you have any idea how to keep the .exe from setting off every antivirus software imaginable? It's the only issue I'm having after I create the executable is that it keeps getting flagged every time someone tries to run it.
@TokyoUnderworld
@TokyoUnderworld 5 жыл бұрын
@@Gakusangi i don't :/
@dheerajsavij
@dheerajsavij 3 жыл бұрын
WOW!!! The way you opened cmd prompt was so simple and easy! I never knew you could do that!
@Scanito
@Scanito 3 жыл бұрын
Outstanding tutorial! Fast and directly to the point. Thanks Tim.
@kemubadap3643
@kemubadap3643 4 жыл бұрын
Wow this really helped me. I was looking for something like this for a really long time.
@khanhhien06
@khanhhien06 6 жыл бұрын
Nice video. Thank you so much! Note that if you have a space in your python file, it would fail at the step --onefile -w. I deleted it and it worked! Thanks.
@goodclover
@goodclover 5 жыл бұрын
If you put quotes around the name it should work eg: pyinstalller --onefile -w "my file.py"
@fabiogavilan5389
@fabiogavilan5389 3 жыл бұрын
in the command prompt you can also write: "where python" (without quotes) to find the directory
@chawza8402
@chawza8402 3 жыл бұрын
@Enkeli EXE I know right? it's weird that we have to search on Appdata/Roaming directory
@aasilbinnasir3419
@aasilbinnasir3419 2 жыл бұрын
I loved this tutorial, i was not able to find a way to convert pygame files to exe until i saw this. Amazing work!! keep it up.
@livinlivin100
@livinlivin100 3 жыл бұрын
Before making the project to a exe make sure to run from the command line check whether it works. If you created project through pycharm or some other ide the additional packages downloaded may not work at times. So recommend to install the packages using the pip in the project directory from command prompt and the make an exe. It will work like charm. Thank you for the awesome video. Saved slot of time for me.
@cheesehunter_
@cheesehunter_ Жыл бұрын
thank you so much!!
@DAMMELOVER123
@DAMMELOVER123 2 жыл бұрын
I keep getting the "pyinstaller is ot recognized as an internal or external command" how do i fix this?
@ANipi-hs5hp
@ANipi-hs5hp 4 жыл бұрын
As a newbie in programing, i'm greatly motivated by your articles. particularly the simple analogy of your explanations. how far i can go in python will be thanks to you.
@w1ldly
@w1ldly 3 жыл бұрын
filmar
@MrPaulArmistead
@MrPaulArmistead 5 жыл бұрын
Great explainer vid, but that tip with typing cmd into the explorer bar is brilliant
@goodclover
@goodclover 5 жыл бұрын
You can type anything you type into Run (Win + R)
@irishfitz6190
@irishfitz6190 5 жыл бұрын
I too am picking that up from this video
@clerisduchrist1253
@clerisduchrist1253 5 жыл бұрын
In my case I paused the vid to try it ! I'm definetely adopting it
@eeeVillain
@eeeVillain 5 жыл бұрын
There is also shift + right click and you'll get open with command prompt in the list
@Teknishun
@Teknishun 5 жыл бұрын
Wait you're not joking? LOL! C'mon that cant be true!? I usually have Old School Runescape just so that someone types in "Run" then ENTER it opens up RUNeScape, very funny when scambaiting they usually open up 2 or 3 instances of the game before they realize they need to stop spamming enter because theres a program that starts by RUN. Joke aside, yeah anything you type in the search bar+enter will execute the first program that starts with that name CMD, Command, etc. Also WINDOWSKEY(Super if youre used to Linux)+R will open the run window. Honestly what did you do if you closed explorer.exe before learning that? Im just curious to know if you'd reboot the machine in despair.
@Saturn_0010
@Saturn_0010 3 жыл бұрын
The instructions were clear as fresh water and worked as smooth as a butter. Thanks bruv for the tip!
@henry7132
@henry7132 2 жыл бұрын
at 4:03 it doesn't work but instead says: 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.
@tomershechner
@tomershechner 6 жыл бұрын
Finally a good tutorial out there
@nickchourchoulis
@nickchourchoulis 3 жыл бұрын
Me: "how to convert python file to exe" First result: from Tim Me: "Yeeeeeahhh boiiiii that's the good stufffff"
@shajor1646
@shajor1646 Жыл бұрын
i have i problem when i install pyinstaller and try to make the py file to exe like the video in cmd it shows to me no module named pyinstaller but i already installed?? how can i fix it
@likhithswaroop9551
@likhithswaroop9551 2 жыл бұрын
Thanks alot Tim!!!! Damn i was searching for this video everywhere, and couldn't get the accurate one. You made it look soo damn easy.
@tString42
@tString42 3 жыл бұрын
Not only did I learn the Python conversion, but also some shortcuts for using command prompt and file explorer - thank you!
@shyampathak9382
@shyampathak9382 5 жыл бұрын
Looking such typw of thing from months and finally get something useful mqny thanks for this upload.
@jorgesam1998
@jorgesam1998 4 жыл бұрын
Read books .
@0_-
@0_- 4 жыл бұрын
@@jorgesam1998 I just realized I had to read books today, thank you for reminding me
@treym2k
@treym2k 4 жыл бұрын
"Convert" Compile: am I a joke to you?
@treym2k
@treym2k 4 жыл бұрын
@WhiteHatHacking I think python is a good language but it's better suited for tasks that don't require efficiency. People try to use python for everything these days pushing it to do something it's not meant to. You should look into Golang it has a simple type script like python but is staticky typed. Meaning a lot less runtime errors that should of been caught at compile time. And best part it compiles like a c language. Its speed is very comparable to C++
@thingsiplay
@thingsiplay 4 жыл бұрын
Pyinstaller does not compile. It just packages the Python source code with the Python interpreter (plus other files) into an executable archive. If you want compile Python code, then look for Nuitka.
@treym2k
@treym2k 4 жыл бұрын
@@thingsiplay in my opinion if you need to compile you shouldn't be using python in the first place. Python is meant to be a simple quick yet powerful language. Its not built to replace C languages.
@thingsiplay
@thingsiplay 4 жыл бұрын
@@treym2k I don't agree with you. Building applications with Python is very easy and fast and for someone who is good in Python, but not in C, it makes totally sense to use it like a compiled programming language too. With Nuitka it can be compiled to native C code. Although the files are very big. It depends on the use case. I am currently creating an application in Python for myself and decided to distribute it for others too, because it is useful for others. For those who don't have Python and all other requirements, they can just download these bundled and compiled versions with PyInstaller and Nuitka. I do not need to learn and rewrite the Python program in C.
@treym2k
@treym2k 4 жыл бұрын
@@thingsiplay if performance isn't important to you than you're right there is no issue with that. But every language has its strengths and this use case is not pythons strength. If you want a simple type script and cross platform capability like python but want the speed of C there is Golang, I personally don't like to limit myself to one language as every language has its advantages and disadvantages but more often than not the projects I'm seeing being made in python run horribly slow becuase that languages capabilities are being pushed. Python is best for automating small to medium sized tasks and it thrives at that.
@andrewpchajek8494
@andrewpchajek8494 5 жыл бұрын
Amazing!!! Thank you, I have been looking for this forever. Today You Gained a Subscriber and a Like. :)
@steves3422
@steves3422 3 жыл бұрын
Wow! Worked. Have a program to get a 'feel' of performance across machines - my own version of a 'whetstone' - so wanted it to be independent of needing python installed. Will test against .py and .exe versions also to see if that makes a difference. Thank You!
@utpalmohane1416
@utpalmohane1416 2 жыл бұрын
Love this.. I knew how to create dist and build file but next steps were totally unknown to me... Thanks Tim
@lamedev1342
@lamedev1342 4 жыл бұрын
If anyone struggled with cmd and you have pycharm, you can just use that terminal instead just make sure you are in the correct directory. Hope this helps!
@yoadbarok3363
@yoadbarok3363 4 жыл бұрын
Thanks for another helpful video Tim! I really enjoy your content and appreciate your desire to teach others! Well done :)
@zemax0618
@zemax0618 4 жыл бұрын
simple notes after making the mistake: if you're using a specific IDE (such as PyCharm), install Pyinstaller in it's path files and not in python's path. If you can, use IDE's terminal
@notdylan8679
@notdylan8679 3 жыл бұрын
so do i do C:\Users ame\PyCharm Community Edition 2020.3.3
@siddheshphadke3719
@siddheshphadke3719 4 жыл бұрын
Super duper useful video bro seriously I used to think it's impossible to make installers for free
@dongookson3755
@dongookson3755 4 жыл бұрын
This saved me a huge amount of time thanks. I was so frustrated by the fbs installation but know thanks to this video I can compile my application in a much simpler way!
@taispaceman
@taispaceman 4 жыл бұрын
I already had my pip, also my pyinstaller has installed succesfully, but I get an Error: 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. Edit: I used python -m PyInstaller and it worked, but while changing the file into .exe I got an Error, it says that system cannot get access to the file. What should I do?
@vinamis
@vinamis 3 жыл бұрын
I had the same issue until I updated my pip version
@isaacnoobysmolbrain
@isaacnoobysmolbrain 3 жыл бұрын
i have same issue as well dont know what to do
@dirgosalga
@dirgosalga 2 жыл бұрын
@@isaacnoobysmolbrain try python -m pyinstaller instead of just pyinstaller
@threepoint1434
@threepoint1434 6 жыл бұрын
It actually works... Finally! THIS IS THE ONLY ONE THAT WORKED!
@GabrielsEpicLifeofGoals
@GabrielsEpicLifeofGoals 4 жыл бұрын
It keeps telling me that it failed to execute the file at the end. Is it because pygame uses the console, and I got rid of it? Also, it uses "fatal error" as the title...
@ritamch7518
@ritamch7518 3 жыл бұрын
If it runs in the console, get rid of the -w and if it doesn't then use it. Mine runs in the console and I had put -w by accident and got the same error. Removed it and it worked.
@hugomartinez2374
@hugomartinez2374 3 жыл бұрын
@@ritamch7518 You've saved my life!
@walkastray007
@walkastray007 4 жыл бұрын
Its the little things like this that make me so happy. Sometimes we don't need to know what a variable is for the 100th time. And it's not too advanced. Just right :)
@ivanhenriquealvesferraz4804
@ivanhenriquealvesferraz4804 Жыл бұрын
Thanks a million, was lost for the longest time before finding this video.
@TheVincent0268
@TheVincent0268 5 жыл бұрын
Tip for those who work on Windows and have a Python script that calls an external library that depends on the Java VM. If the script needs to run unattended use FireDaemon, which installs the scipt easily as a Windows Service. The script runs in session0, which does not need a logged in user.
@soul7247
@soul7247 4 жыл бұрын
i need help it sais 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. can u help me?
@fanthom3489
@fanthom3489 4 жыл бұрын
try easy_install pyinstaller it worked for me
@МахамбетМамыров
@МахамбетМамыров 4 жыл бұрын
sometimes you have to "pip install wheel" first. Worked for me
@prashanna_maharjan
@prashanna_maharjan 4 жыл бұрын
same problem i really want help if anybody knows plz msg me
@moneymayne
@moneymayne 4 жыл бұрын
@@prashanna_maharjan had the same problem just do python -m pip install pyinstaller and then python -m PyInstaller filename.py
@janpost8598
@janpost8598 4 жыл бұрын
You can just type cmd in the filefolder path! Lol wish I knew that years ago :P
@demaxl732
@demaxl732 3 жыл бұрын
As usual your videos are short, clear, understandable and straightforward.
@justforwork4310
@justforwork4310 3 жыл бұрын
This was great, I was able to share my file with a client today without having to send them the source code. this is great! Thank you!
@murdatainment
@murdatainment 3 жыл бұрын
Just u plusobf
@murdatainment
@murdatainment 3 жыл бұрын
*use
@ajinkyasonwane4433
@ajinkyasonwane4433 4 жыл бұрын
To add icon and create a .exe file simultaneously: pyinstaller --onefile -i icon.ico yourfile.py
@brawlmania7544
@brawlmania7544 3 жыл бұрын
I used auto-py-to-exe which is basically just a GUI version of pyinstaller.
@daszwieback8972
@daszwieback8972 3 жыл бұрын
i too
@srek09
@srek09 4 жыл бұрын
When I want to start it I got: " Failed to execute script [filename]. What to do now?
@Uwrath
@Uwrath 4 жыл бұрын
only heaven knows
@alexgalvao2915
@alexgalvao2915 4 жыл бұрын
For me worked when I moved the files in the same pastes and rewrited some inside functions.
@saadhusant4737
@saadhusant4737 4 жыл бұрын
do not use -w(used for not showing command prompt) in the command , and then run your .exe file ,and now in the command window check the errors (if any)
@aneeshmalapaka8363
@aneeshmalapaka8363 4 жыл бұрын
ok so if that occurs in ur system then check whether u have root.mainloop() at the end and check the path of all files exist in the same directory u r building into...this helped me and if u have solution why this occurs in other systems please help me...
@braytonalkinburgh513
@braytonalkinburgh513 4 жыл бұрын
when I encountered this issue I found that my modules were installed in my IDE rather than my actual run environment. I opened the directory where my .py file was located in my cmd line and simply re-installed my dependencies there and everything worked.
@BanditOfBandwidth
@BanditOfBandwidth 2 жыл бұрын
This was exactly what I needed! Worked like a charm. Thank you!
@indestructible-today
@indestructible-today 3 жыл бұрын
Why every programming tutorial i watch is from 2018? 😂 Great tutorial btw, thanks.
@987tevin
@987tevin 5 жыл бұрын
Great tutorial! Thank you
@kismet4904
@kismet4904 3 жыл бұрын
For me, it says 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. Does anyone have a solution for this problem
@JR-is7dg
@JR-is7dg 3 жыл бұрын
I got this error as well. I had to reinstall python and anaconda, and selected 'add to enviornment for both. I then followed the instructions of this video and it worked. it may be due to your python and anaconda software, as well as it not being added to the system environment
@febrirasyiid4808
@febrirasyiid4808 4 жыл бұрын
I did everything you said but when i run my exe file an error message came out saying windows got a problem and need to close it. My code works perfectly fine when i run it using IDLE or pyCharm. What should i do?
@geetsalame3457
@geetsalame3457 4 жыл бұрын
Same problem
@braytonalkinburgh513
@braytonalkinburgh513 4 жыл бұрын
After a glorious fight with this issue, I found that my modules were installed in my IDE rather than my actual run environment. This is why it runs perfectly fine in pyCharm but not from the console. to resolve this I opened the directory where my .py file was located in my cmd line and simply re-installed my dependencies there and everything worked. I hope this works for you because I was beating my head against the wall for days without finding any solutions online. Let me know!
@suvodeepnayek5509
@suvodeepnayek5509 3 жыл бұрын
@@braytonalkinburgh513 hey bro I have same problem please explain how to solve this I can't understand your solve answer
@obednyavor1038
@obednyavor1038 4 жыл бұрын
You are good. I have been struggling for years with this issue and you solved it less than 10
@lionlight9514
@lionlight9514 3 жыл бұрын
Thanks Tim! Great Video Since I was wondering if other people could run this without having python and you told me at start so I could click off but I didn't and I saw that I could compile ALL the files instead of having pychache and all that thanks Again!
@benjaminjones7782
@benjaminjones7782 6 жыл бұрын
Wouldn't mind seeing a video on that golf game you used as your demo?
@TechWithTim
@TechWithTim 6 жыл бұрын
There is one on my channel my friend, might have to dig pretty far back through the uploads but you’ll find it.
@olleblume
@olleblume 4 жыл бұрын
When I want to convert the File it's all good and i have a exe but windows defender says thats a virus
@oguzhangezer4290
@oguzhangezer4290 4 жыл бұрын
Same here, did you find anyhing
@3Nai3
@3Nai3 4 жыл бұрын
Same :(
@officialrmb6088
@officialrmb6088 4 жыл бұрын
gg
@grey9847
@grey9847 4 жыл бұрын
Same. Do you think it safe?
@coolcoding885
@coolcoding885 4 жыл бұрын
same it has a file in it called Trojan
@oolong4700
@oolong4700 5 жыл бұрын
Nice tutorial ! But I have some problems when I tried it step by step. At final step to create executive file, the last line of cmd shows "FileNotFoundError: [WinError 2] system can't find the file" What have I missed ? I've been troubled several hours.
@matheusassismelo
@matheusassismelo 4 жыл бұрын
Wow, Brazil here, you have the best videos about python
@arunasheep
@arunasheep 2 жыл бұрын
Thanks for this tutorial! I really appreaciate how you explained it with so much detail other youtubers just assume we know what we're doing
@yandere_lover-tl9zs
@yandere_lover-tl9zs 4 жыл бұрын
I need help. I get Fatal Error - Failed to execute script. I have kept the exe file in the main directory along with the other files. Still, it doesnt work. Pls help! =(
@jules.anderson3416
@jules.anderson3416 4 жыл бұрын
same issue here...
@Felix-wo7qz
@Felix-wo7qz 4 жыл бұрын
@@jules.anderson3416 same... do you have Python 3.8?
@akshhat97
@akshhat97 4 жыл бұрын
Same issue. I've Python 3.8
@A101-v6k
@A101-v6k 4 жыл бұрын
Pyinstaller sometimes has *problems* with 3.8, have you tried rewriting code to 2.x?
@danielflores-xk2iy
@danielflores-xk2iy 4 жыл бұрын
maybe : github.com/pyinstaller/pyinstaller/wiki/Supported-Packages
@graficandorealidades7561
@graficandorealidades7561 4 жыл бұрын
My windows antivirus detected my own executable as Trojan (strong) xD Also, when I click it nothing happens
@sebastianandrade8500
@sebastianandrade8500 4 жыл бұрын
I've send my. .exe program to my friends and the told me the same xd
@fergus4254
@fergus4254 4 жыл бұрын
I’m having the same issue with running my .exe - it doesn’t do anything when I run it. I think this is because mine is a console app and the code finishes running before it actually opens, I’ve found some help digging around but there’s nothing that really explains it well
@sebastianandrade8500
@sebastianandrade8500 4 жыл бұрын
@@fergus4254 probably it's cause as you said it's a console program, my gui program works for me and a few friends but for some of my friends it's detected as i virus, but I've been reading and it's a common error
@danielflores-xk2iy
@danielflores-xk2iy 4 жыл бұрын
same, but I disable antivirus and then that working, two days after in another file exe when I try to convert (py to exe), in box message "fatal error scripts"
@sebastianandrade8500
@sebastianandrade8500 4 жыл бұрын
@@danielflores-xk2iy same, i ve convert one py file and then i try to convert other pyfile and didn't work, said "type error got num of bytes" or something like this
@krishnapoddar76
@krishnapoddar76 4 жыл бұрын
The final exe didnt run and is showing failed to execute due to fatal error?pls help
@puifungpoon676
@puifungpoon676 4 жыл бұрын
I have found the solution from the KZbinr DafluffyPotato A couple important notes in case things aren't working: If you use pygame.font.SysFont(None, x), the executable won't work. You can switch out None for 'calibri' or whatever and it'll work. and make sure you have all your dependencies with the exe file in the same file.
@krishnapoddar76
@krishnapoddar76 4 жыл бұрын
@@puifungpoon676 ok i'll remove my font i have a font added in my code
@Felix-wo7qz
@Felix-wo7qz 4 жыл бұрын
@@puifungpoon676 I have done that and it still isnt working...
@rohanphilip1059
@rohanphilip1059 3 жыл бұрын
@Tech With Tim I love your programming content!
@dazstuff1875
@dazstuff1875 2 жыл бұрын
dude. this is bluddy fantastic. much appreciated
@RohitGDale
@RohitGDale 4 жыл бұрын
When I run my exe file it says " Fatal error detected" Pls help :|
@asifhossain7921
@asifhossain7921 4 жыл бұрын
Hello, You have to put your all dependencies like image or anything that your python file required in the same directory with your exe file. Hope that helps.
@a.svasial884
@a.svasial884 4 жыл бұрын
I have the same issue 'failed to execute script pyi_rth_pkgres'.... But for my prgm don't have any image like that
@RohitGDale
@RohitGDale 4 жыл бұрын
@@asifhossain7921 Thanks but I did that already but same error window is popping up "Fatal Error Detected"
@MegaDixen
@MegaDixen 4 жыл бұрын
@@RohitGDale same with me and same error when i only have one file
@a.svasial884
@a.svasial884 4 жыл бұрын
@@jannoj2921 yha bro may be a simple issue but no one is there to figure it out
@lemague
@lemague 5 жыл бұрын
Man, you are the maximum!
@edgarperez9949
@edgarperez9949 5 жыл бұрын
if you get "error: invalid command 'bdist wheel' " when trying to install pyinstaller, just type: pip install wheel
@mashalex2000
@mashalex2000 4 жыл бұрын
I tried and now i get " ERROR: Failed building wheel for pyinstaller Failed to build pyinstaller ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly"
@DavisDCodes
@DavisDCodes 2 жыл бұрын
Although this video is more than 3 years old , it is still extremely helpful. Thanks a lot!
@austin-multicellular
@austin-multicellular 2 жыл бұрын
I followed steps exactly but at 4:02 i got 'pyinstaller' is not recognized as an internal or external command, operable program, or batch file
@samcamus3000
@samcamus3000 5 жыл бұрын
Why it's so hard to me to convert my python file into exe. I followed your instructions but still didn't work. I use pycharm. It's there need to consider first?
@katakibonji4062
@katakibonji4062 4 жыл бұрын
make sure it is a .zip and not a .rar , ( i too used pycharm and it worked)
@monochromeart7311
@monochromeart7311 4 жыл бұрын
PyCharm is an IDE (Integrated Development Environment), it should not affect such things anyway
@danielkatsenelson6852
@danielkatsenelson6852 4 жыл бұрын
got a "failed to execute script" error.. when launching the exe file...what should I do...?
@scoop765
@scoop765 4 жыл бұрын
Check over one more time to make sure there are no errors in your program
@Felix-wo7qz
@Felix-wo7qz 4 жыл бұрын
@@scoop765 I have the same issue as this guy and the exe is in my main folder and it is working fine when I run the py-file. I still got the "failed to execute script" error.
@seeranimate4363
@seeranimate4363 3 жыл бұрын
i get a warning when i run my exe saying "Failed to execute script main"
@karlovragotuk3081
@karlovragotuk3081 3 жыл бұрын
you need to put in your .py script name not main
@manhargupta4930
@manhargupta4930 4 жыл бұрын
The vid was just to the point and great. Please increase the resolution of the video the next time
@arturjorgeamorimneto3466
@arturjorgeamorimneto3466 2 жыл бұрын
very direct. very simple. and very effective. thanks my dude
@satendrakumarMATLAB-TUTORIALS
@satendrakumarMATLAB-TUTORIALS 4 жыл бұрын
Showing "Filed to execute file" any recommendations to solve this issue?
@trublaster101
@trublaster101 4 жыл бұрын
If I is on Unix platform / OS chmod 755
@saadhusant4737
@saadhusant4737 4 жыл бұрын
do not use -w(used for not showing command prompt) in the command , and then run your .exe file ,and now in the command window check the errors (if any)
@o_poky9359
@o_poky9359 4 жыл бұрын
@@saadhusant4737 i did what you said but now when i open my exe file cmd pops up with an error and disappears fast and i wont be able to read the error
@saadhusant4737
@saadhusant4737 4 жыл бұрын
@@o_poky9359 record in phone and pause it when error occurs
@o_poky9359
@o_poky9359 4 жыл бұрын
@@saadhusant4737 it helped thanks alot
@ninadkhire
@ninadkhire 3 жыл бұрын
Is there any way to put the images/resources in the exe using pyinstaller itself. Without creating an installer? Thanks for the awesome video.....!!
@karimkhan1295
@karimkhan1295 3 жыл бұрын
Yes by adding this code -- add-file "path to image"
@krishnendusarkar9982
@krishnendusarkar9982 5 жыл бұрын
thanks man that helped a lot
@seanredmond9212
@seanredmond9212 2 жыл бұрын
that tip at 2:56 is brilliant - thanks
@sohonghosh1803
@sohonghosh1803 2 жыл бұрын
Thank you sir for this useful video. Now I can share the projects which I made to others in a application
@FrenchToest
@FrenchToest 5 жыл бұрын
I typed in 'pyinstaller --onefile -w apple.py' and it said TypeError: an integer is required (got type bytes) how to fix???
@yousefkammouneh6559
@yousefkammouneh6559 5 жыл бұрын
you need a newer version of pyinstaller, use this in cmd and it should work: pip install github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
@alexsoft55
@alexsoft55 5 жыл бұрын
@@yousefkammouneh6559 thanks very much! :)
@quocbao6046
@quocbao6046 5 жыл бұрын
@@alexsoft55 did you fix this problem? I have the same one. Can you plesea help me?
@theheadpriest
@theheadpriest 5 жыл бұрын
@@yousefkammouneh6559 THX al LOT for the TROJAN... BUDDY >:(
@simonmaracine4721
@simonmaracine4721 6 жыл бұрын
Thank you! I wanted to make an executable file without console window, so I tried converting .pyw to .exe, but it didn't work. "-F" also tells pyinstaller to make everything in one file, doesn't it?
@enrico3527
@enrico3527 5 жыл бұрын
Use -w
@Gakusangi
@Gakusangi 5 жыл бұрын
I'll be damned, this was amazingly simple!
@doonk6004
@doonk6004 3 жыл бұрын
Excellent video. I've been looking for exactly this kind of tutorial for a while!
@TechWithTim
@TechWithTim 3 жыл бұрын
Awesome, thank you!
@velocity_50
@velocity_50 2 жыл бұрын
Wow, thank you for this really good tutorial. It works great. Btw you are making good videos. Straight to the point. Keep it up!!!
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 559 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,5 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Mastering Python - Everything You Need To Know To Become a Python Master
16:02
Convert python script to DMG file [MacOS] in 2024
6:37
James Abela
Рет қаралды 1,4 М.
Convert Tkinter Python App to Executable (.Exe) File [pyinstaller]
9:11
Code First with Hala
Рет қаралды 166 М.
Please Master This MAGIC Python Feature... 🪄
25:10
Tech With Tim
Рет қаралды 96 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 423 М.
Standalone Python EXE Executable - Python Kivy GUI Tutorial #20
13:00
Convert .EXE to IMAGE!
5:18
ebola man
Рет қаралды 600 М.
Python Socket Programming Tutorial
49:43
Tech With Tim
Рет қаралды 1 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41