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.
@tomershechner6 жыл бұрын
Whether the icon should be a certain file type? Like .ico or something?
@TechWithTim6 жыл бұрын
Yes it should be .ico
@gormauslander6 жыл бұрын
Does this need to be done during the exe creation process or can it be done after the exe is created?
@TechWithTim6 жыл бұрын
@@gormauslander I can't seem to remember, just try it! You should be able to see which way works or doesn't quite quickly.
@gormauslander6 жыл бұрын
@@TechWithTim cool cool will do
@SmittyWerb423 жыл бұрын
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.
@WhoUt3 жыл бұрын
when you type something in there, first it checks if anything in that folder has that name, then it checks the system32 folder
@paulnorton24633 жыл бұрын
MAN I DIDN'T KNOW THIS TOO JUST TODAY🙄🙄🙄🙄
@Nerino3 жыл бұрын
Yeah man, that was a great discovery for me too
@neonn88763 жыл бұрын
whoa whoa
@reversesunlight96703 жыл бұрын
Same
@int16_t5 жыл бұрын
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!'.
@keshavapiyushprasad54395 жыл бұрын
Dude watch 4:15 He fumbles on the word command But love this guy, totally agree with you
@Kyrelel4 жыл бұрын
He says "uhh" or "umm" several times during the video (twice in the first 30 secs, for example)
@int16_t4 жыл бұрын
@@Kyrelel Right, I might be overeacting, but anyway, he talk fast!!
@gravnine3 жыл бұрын
yeah, gotta hate the people who say "cough!" out loud
@HavenAWilliams2 жыл бұрын
>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.
@MadMullins2 жыл бұрын
@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!
@satoriblue13494 жыл бұрын
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.
@jankokert6534 жыл бұрын
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!!!
@cosminturtureanu6924 жыл бұрын
I've been using Left Shift + Right click but this is way faster
@berkaydemirci4 жыл бұрын
@@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.
@cosminturtureanu6924 жыл бұрын
@@berkaydemirci I've changed the registry so that they both appear when I use LShift + RMB
@RijuChatterjee4 жыл бұрын
ikr. so long typing long paths
@RohanKumar-zd3pc4 жыл бұрын
I searched CMD and hit enter before any option comes. And hopefully a CMD window pops up
@Cryptosonix5 жыл бұрын
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!
@pizzagamingps44282 жыл бұрын
True.
@stevejohnson90302 жыл бұрын
Facts
@badasstrapbass23133 жыл бұрын
THANK YOU. you explained how to fix a problem other KZbinrs skipped over... I honestly didn't know what to do
@rudrarathi39803 жыл бұрын
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!!!
@kobe7815 жыл бұрын
The only well-made and modern tutorial I could find, thanks a lot. Extremely easy to follow
@scifregizmoguy5 жыл бұрын
Clear, concise, brief voice. You'll definitely go far with that. Great video.
@gbin215 жыл бұрын
Straight to the point.💪🏼
@rohanphilip10593 жыл бұрын
I totally agree
@jalensanders85113 жыл бұрын
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 Жыл бұрын
wow! you put pip installing, pyinstaller and NSIS basic in 8 mins. awesome! thank you
@eCouchPotatoe3 жыл бұрын
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.
@ahmadgalamli4 жыл бұрын
1:50 You can get the Python's path by typing "where python" to cmd
@lukehebert62074 жыл бұрын
Just tried it and it works, thank you!
@GwenSpanner4 жыл бұрын
I tried this and it said "could not find files for the given pattern(s)"
@ahmadgalamli4 жыл бұрын
The unidentified anomalous baguette - I think you didn’t added Python to PATH.
@GwenSpanner4 жыл бұрын
I have got it in path, but if that's the reason this isn't working, then I've probably written something wrong
@hruthikshetty6834 жыл бұрын
Thanks bro 👍
@stony87654 жыл бұрын
THIS IS THE BEST TUTORIAL ON THE GODDAMN PLANET THANK YOU !!!
@TheHackysack5 жыл бұрын
Clear, concise instructions. Hard to come by these now-a-days. Thank you.
@j__x__c88233 жыл бұрын
this world needs people like you.
@admontech964 жыл бұрын
Holy shit I've spent hours confused trying to understand this, and now learned it in 8 minutes start to finish. Thanks.
@davidhochstetler79816 жыл бұрын
Super useful video dude, thanks a bunch
@thingsiplay4 жыл бұрын
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.
@TokyoUnderworld6 жыл бұрын
Very quick and concise guide on something that is way more convoluted than it should be. Hats off to you, sir!
@Gakusangi5 жыл бұрын
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.
@TokyoUnderworld5 жыл бұрын
@@Gakusangi i don't :/
@dheerajsavij3 жыл бұрын
WOW!!! The way you opened cmd prompt was so simple and easy! I never knew you could do that!
@Scanito3 жыл бұрын
Outstanding tutorial! Fast and directly to the point. Thanks Tim.
@kemubadap36434 жыл бұрын
Wow this really helped me. I was looking for something like this for a really long time.
@khanhhien066 жыл бұрын
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.
@goodclover5 жыл бұрын
If you put quotes around the name it should work eg: pyinstalller --onefile -w "my file.py"
@fabiogavilan53893 жыл бұрын
in the command prompt you can also write: "where python" (without quotes) to find the directory
@chawza84023 жыл бұрын
@Enkeli EXE I know right? it's weird that we have to search on Appdata/Roaming directory
@aasilbinnasir34192 жыл бұрын
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.
@livinlivin1003 жыл бұрын
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_ Жыл бұрын
thank you so much!!
@DAMMELOVER1232 жыл бұрын
I keep getting the "pyinstaller is ot recognized as an internal or external command" how do i fix this?
@ANipi-hs5hp4 жыл бұрын
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.
@w1ldly3 жыл бұрын
filmar
@MrPaulArmistead5 жыл бұрын
Great explainer vid, but that tip with typing cmd into the explorer bar is brilliant
@goodclover5 жыл бұрын
You can type anything you type into Run (Win + R)
@irishfitz61905 жыл бұрын
I too am picking that up from this video
@clerisduchrist12535 жыл бұрын
In my case I paused the vid to try it ! I'm definetely adopting it
@eeeVillain5 жыл бұрын
There is also shift + right click and you'll get open with command prompt in the list
@Teknishun5 жыл бұрын
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_00103 жыл бұрын
The instructions were clear as fresh water and worked as smooth as a butter. Thanks bruv for the tip!
@henry71322 жыл бұрын
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.
@tomershechner6 жыл бұрын
Finally a good tutorial out there
@nickchourchoulis3 жыл бұрын
Me: "how to convert python file to exe" First result: from Tim Me: "Yeeeeeahhh boiiiii that's the good stufffff"
@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
@likhithswaroop95512 жыл бұрын
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.
@tString423 жыл бұрын
Not only did I learn the Python conversion, but also some shortcuts for using command prompt and file explorer - thank you!
@shyampathak93825 жыл бұрын
Looking such typw of thing from months and finally get something useful mqny thanks for this upload.
@jorgesam19984 жыл бұрын
Read books .
@0_-4 жыл бұрын
@@jorgesam1998 I just realized I had to read books today, thank you for reminding me
@treym2k4 жыл бұрын
"Convert" Compile: am I a joke to you?
@treym2k4 жыл бұрын
@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++
@thingsiplay4 жыл бұрын
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.
@treym2k4 жыл бұрын
@@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.
@thingsiplay4 жыл бұрын
@@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.
@treym2k4 жыл бұрын
@@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.
@andrewpchajek84945 жыл бұрын
Amazing!!! Thank you, I have been looking for this forever. Today You Gained a Subscriber and a Like. :)
@steves34223 жыл бұрын
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!
@utpalmohane14162 жыл бұрын
Love this.. I knew how to create dist and build file but next steps were totally unknown to me... Thanks Tim
@lamedev13424 жыл бұрын
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!
@yoadbarok33634 жыл бұрын
Thanks for another helpful video Tim! I really enjoy your content and appreciate your desire to teach others! Well done :)
@zemax06184 жыл бұрын
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
@notdylan86793 жыл бұрын
so do i do C:\Users ame\PyCharm Community Edition 2020.3.3
@siddheshphadke37194 жыл бұрын
Super duper useful video bro seriously I used to think it's impossible to make installers for free
@dongookson37554 жыл бұрын
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!
@taispaceman4 жыл бұрын
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?
@vinamis3 жыл бұрын
I had the same issue until I updated my pip version
@isaacnoobysmolbrain3 жыл бұрын
i have same issue as well dont know what to do
@dirgosalga2 жыл бұрын
@@isaacnoobysmolbrain try python -m pyinstaller instead of just pyinstaller
@threepoint14346 жыл бұрын
It actually works... Finally! THIS IS THE ONLY ONE THAT WORKED!
@GabrielsEpicLifeofGoals4 жыл бұрын
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...
@ritamch75183 жыл бұрын
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.
@hugomartinez23743 жыл бұрын
@@ritamch7518 You've saved my life!
@walkastray0074 жыл бұрын
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 Жыл бұрын
Thanks a million, was lost for the longest time before finding this video.
@TheVincent02685 жыл бұрын
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.
@soul72474 жыл бұрын
i need help it sais 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. can u help me?
@fanthom34894 жыл бұрын
try easy_install pyinstaller it worked for me
@МахамбетМамыров4 жыл бұрын
sometimes you have to "pip install wheel" first. Worked for me
@prashanna_maharjan4 жыл бұрын
same problem i really want help if anybody knows plz msg me
@moneymayne4 жыл бұрын
@@prashanna_maharjan had the same problem just do python -m pip install pyinstaller and then python -m PyInstaller filename.py
@janpost85984 жыл бұрын
You can just type cmd in the filefolder path! Lol wish I knew that years ago :P
@demaxl7323 жыл бұрын
As usual your videos are short, clear, understandable and straightforward.
@justforwork43103 жыл бұрын
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!
@murdatainment3 жыл бұрын
Just u plusobf
@murdatainment3 жыл бұрын
*use
@ajinkyasonwane44334 жыл бұрын
To add icon and create a .exe file simultaneously: pyinstaller --onefile -i icon.ico yourfile.py
@brawlmania75443 жыл бұрын
I used auto-py-to-exe which is basically just a GUI version of pyinstaller.
@daszwieback89723 жыл бұрын
i too
@srek094 жыл бұрын
When I want to start it I got: " Failed to execute script [filename]. What to do now?
@Uwrath4 жыл бұрын
only heaven knows
@alexgalvao29154 жыл бұрын
For me worked when I moved the files in the same pastes and rewrited some inside functions.
@saadhusant47374 жыл бұрын
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)
@aneeshmalapaka83634 жыл бұрын
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...
@braytonalkinburgh5134 жыл бұрын
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.
@BanditOfBandwidth2 жыл бұрын
This was exactly what I needed! Worked like a charm. Thank you!
@indestructible-today3 жыл бұрын
Why every programming tutorial i watch is from 2018? 😂 Great tutorial btw, thanks.
@987tevin5 жыл бұрын
Great tutorial! Thank you
@kismet49043 жыл бұрын
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-is7dg3 жыл бұрын
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
@febrirasyiid48084 жыл бұрын
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?
@geetsalame34574 жыл бұрын
Same problem
@braytonalkinburgh5134 жыл бұрын
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!
@suvodeepnayek55093 жыл бұрын
@@braytonalkinburgh513 hey bro I have same problem please explain how to solve this I can't understand your solve answer
@obednyavor10384 жыл бұрын
You are good. I have been struggling for years with this issue and you solved it less than 10
@lionlight95143 жыл бұрын
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!
@benjaminjones77826 жыл бұрын
Wouldn't mind seeing a video on that golf game you used as your demo?
@TechWithTim6 жыл бұрын
There is one on my channel my friend, might have to dig pretty far back through the uploads but you’ll find it.
@olleblume4 жыл бұрын
When I want to convert the File it's all good and i have a exe but windows defender says thats a virus
@oguzhangezer42904 жыл бұрын
Same here, did you find anyhing
@3Nai34 жыл бұрын
Same :(
@officialrmb60884 жыл бұрын
gg
@grey98474 жыл бұрын
Same. Do you think it safe?
@coolcoding8854 жыл бұрын
same it has a file in it called Trojan
@oolong47005 жыл бұрын
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.
@matheusassismelo4 жыл бұрын
Wow, Brazil here, you have the best videos about python
@arunasheep2 жыл бұрын
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-tl9zs4 жыл бұрын
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.anderson34164 жыл бұрын
same issue here...
@Felix-wo7qz4 жыл бұрын
@@jules.anderson3416 same... do you have Python 3.8?
@akshhat974 жыл бұрын
Same issue. I've Python 3.8
@A101-v6k4 жыл бұрын
Pyinstaller sometimes has *problems* with 3.8, have you tried rewriting code to 2.x?
My windows antivirus detected my own executable as Trojan (strong) xD Also, when I click it nothing happens
@sebastianandrade85004 жыл бұрын
I've send my. .exe program to my friends and the told me the same xd
@fergus42544 жыл бұрын
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
@sebastianandrade85004 жыл бұрын
@@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-xk2iy4 жыл бұрын
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"
@sebastianandrade85004 жыл бұрын
@@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
@krishnapoddar764 жыл бұрын
The final exe didnt run and is showing failed to execute due to fatal error?pls help
@puifungpoon6764 жыл бұрын
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.
@krishnapoddar764 жыл бұрын
@@puifungpoon676 ok i'll remove my font i have a font added in my code
@Felix-wo7qz4 жыл бұрын
@@puifungpoon676 I have done that and it still isnt working...
@rohanphilip10593 жыл бұрын
@Tech With Tim I love your programming content!
@dazstuff18752 жыл бұрын
dude. this is bluddy fantastic. much appreciated
@RohitGDale4 жыл бұрын
When I run my exe file it says " Fatal error detected" Pls help :|
@asifhossain79214 жыл бұрын
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.svasial8844 жыл бұрын
I have the same issue 'failed to execute script pyi_rth_pkgres'.... But for my prgm don't have any image like that
@RohitGDale4 жыл бұрын
@@asifhossain7921 Thanks but I did that already but same error window is popping up "Fatal Error Detected"
@MegaDixen4 жыл бұрын
@@RohitGDale same with me and same error when i only have one file
@a.svasial8844 жыл бұрын
@@jannoj2921 yha bro may be a simple issue but no one is there to figure it out
@lemague5 жыл бұрын
Man, you are the maximum!
@edgarperez99495 жыл бұрын
if you get "error: invalid command 'bdist wheel' " when trying to install pyinstaller, just type: pip install wheel
@mashalex20004 жыл бұрын
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"
@DavisDCodes2 жыл бұрын
Although this video is more than 3 years old , it is still extremely helpful. Thanks a lot!
@austin-multicellular2 жыл бұрын
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
@samcamus30005 жыл бұрын
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?
@katakibonji40624 жыл бұрын
make sure it is a .zip and not a .rar , ( i too used pycharm and it worked)
@monochromeart73114 жыл бұрын
PyCharm is an IDE (Integrated Development Environment), it should not affect such things anyway
@danielkatsenelson68524 жыл бұрын
got a "failed to execute script" error.. when launching the exe file...what should I do...?
@scoop7654 жыл бұрын
Check over one more time to make sure there are no errors in your program
@Felix-wo7qz4 жыл бұрын
@@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.
@seeranimate43633 жыл бұрын
i get a warning when i run my exe saying "Failed to execute script main"
@karlovragotuk30813 жыл бұрын
you need to put in your .py script name not main
@manhargupta49304 жыл бұрын
The vid was just to the point and great. Please increase the resolution of the video the next time
@arturjorgeamorimneto34662 жыл бұрын
very direct. very simple. and very effective. thanks my dude
@satendrakumarMATLAB-TUTORIALS4 жыл бұрын
Showing "Filed to execute file" any recommendations to solve this issue?
@trublaster1014 жыл бұрын
If I is on Unix platform / OS chmod 755
@saadhusant47374 жыл бұрын
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_poky93594 жыл бұрын
@@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
@saadhusant47374 жыл бұрын
@@o_poky9359 record in phone and pause it when error occurs
@o_poky93594 жыл бұрын
@@saadhusant4737 it helped thanks alot
@ninadkhire3 жыл бұрын
Is there any way to put the images/resources in the exe using pyinstaller itself. Without creating an installer? Thanks for the awesome video.....!!
@karimkhan12953 жыл бұрын
Yes by adding this code -- add-file "path to image"
@krishnendusarkar99825 жыл бұрын
thanks man that helped a lot
@seanredmond92122 жыл бұрын
that tip at 2:56 is brilliant - thanks
@sohonghosh18032 жыл бұрын
Thank you sir for this useful video. Now I can share the projects which I made to others in a application
@FrenchToest5 жыл бұрын
I typed in 'pyinstaller --onefile -w apple.py' and it said TypeError: an integer is required (got type bytes) how to fix???
@yousefkammouneh65595 жыл бұрын
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
@alexsoft555 жыл бұрын
@@yousefkammouneh6559 thanks very much! :)
@quocbao60465 жыл бұрын
@@alexsoft55 did you fix this problem? I have the same one. Can you plesea help me?
@theheadpriest5 жыл бұрын
@@yousefkammouneh6559 THX al LOT for the TROJAN... BUDDY >:(
@simonmaracine47216 жыл бұрын
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?
@enrico35275 жыл бұрын
Use -w
@Gakusangi5 жыл бұрын
I'll be damned, this was amazingly simple!
@doonk60043 жыл бұрын
Excellent video. I've been looking for exactly this kind of tutorial for a while!
@TechWithTim3 жыл бұрын
Awesome, thank you!
@velocity_502 жыл бұрын
Wow, thank you for this really good tutorial. It works great. Btw you are making good videos. Straight to the point. Keep it up!!!