@@PyTutorials Guy, You were the first tutorial I watched about it. It was freakin' working first time ! haha Last time I've watched a Python tutorial about pip, it tooks me 20 minutes to figure it out. But now I have a question. If I want to share this .exe . I must share all files ?? Edit : ( I put -F -w )
Everything in the \dist folder is what you need. If you used -F, then there should be only one executable in the dist folder. "dist" stands for distribution.
This is genuinely one of the best tutorials I have seen. You speak at a great pace, you are knowledgeable of the subject, you give quick, precise, and yet detailed information. I learned all I needed to know to create an executable in just three minutes. Absolutely amazing, genuinely. Thank you.
That is what a tutorial should be like. I have been searching the web for the past hour and you summed it all up in just under 3 minutes. Great job and keep it up!
Hey just wanted to say thank you for this. Around 6 yrs ago, I was a junior software engineer working on a tool for our main app, this tutorial saved me from hours to days of headache. Thank you so much! Keep up the good work wherever you are.
i literlarly just choosed this tutorial because its very short and i dont want an ytber who just talks soooo much and doesnt cae to the point, but this was the greatest i could found. Thank you!
Man, i want to thank you for your super, easy and simple tutorial, after hundreds of websites and videos, i found the perfect tutorial ;) Thank you again ;)
Finally a tutorial that works. Also how do i make it if my program depends on files such as .pngs it will also compile the png into the exe, so it can run without having to be in the same directory as the image
If you go to ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6LC3SV7yTLY.html and watch from 3:25, I show you how to compile the image into the executable. Make sure to add the code to your script and wrap it around all usages of the image in the script. If you follow along correctly it should work. Has never failed for me.
When i want to create a new path for my directory this window is not the same in Windows 7 at all,it offers me to add variable name and bellow variable value.
What? This is amazing quality, very dense yet very didactic, easy to follow thanks to the command appearing on screen. I wish I had found your channel before but I am very appreciative to have found it today. Thank you. FIrst video, immediate like and sub. You are amazing!
This is how a tech tutorial should be. I've literally seen people make 10 minute tutorials to explain something that could have been summed up in 30 seconds, I am not even kidding.
Me: Wow I just compiled my first executive program! I am so excited!! AVG: I 'm gona end this guy's whole career! >:-( Also AVG: Threat Secured. We've moved myprogram.exe to your quarantine because it is infected!
Unfortunately, some anti-virus vendors think that the output is a virus/malware. It has been noted in a GitHub issue but unfortunately, this one is on the vendor and there is nothing we can do: github.com/pyinstaller/pyinstaller/issues/2501#issuecomment-286230354
I don't really need this information right now, as I can't even make my software work properly, but God damn a nice tutoral. One of the few where the comments aren't lying. Short and concise and full of all the information you'd wanna know. Just goes to show that you don't have to make 10-20 minute videos about a topic.
This is by far the best .Py to .exe tutorial on the platform I really appreciate the fact that you show us how to add the icon and remove the additional files and the console. Thank you very much!
LOVE IT. Great video. Hate people who take 10 minutes to get to the actual point of the video. You are not one of those people :) Very easy to follow. Took some notes for future reference, lol ;)
If the console write the AttributeError: module 'enum' has no attribute 'IntFlag', then in the console write pip uninstall enum34 (I useing Python 3.6)
Thank god someone that actually cares about making quality content. Not often one can say that these days. First video I watched from you was how to make an auto clicker! all of your videos are short and to the point! defo deserves a sub
The best tutorial ever. This guys the best, even after 5 years he's helping out people who face problems while converting the file. He helped me alot, he deserves the subs. You're underated af. Massive respect 👍
Thank you so much!! :) I love your tutorials! I have a question After I convert to .exe how to run automatically when windows starts up? Sorry for my english. Thanks!
unfortunately I tried it and, on windows 8.1, I have error at start. I put the shortcut on that folder, and all the executable on "C:\Program Files", the logs are saved on a public folder, so there aren't privileges issues. Nothing works, every time at starts it pops up "failed to launch coco.py".
They asked how to run an .exe automatically when windows starts up, not a .py. By the looks of the error you have put there, you have put a .py file in the startup folder. To run the .py you will need to have a .bat file in the startup folder calling "python " and then your python file some where else (no in the startup folder).
Ye, I mean, the shortcut refers to the .exe file on the folder under "C:\Program Files". I was wrong, the error refers to the executable, not the py file, since i made the executable using the .pyw file
C:\Users\username\Downloads\Compressed>pyinstaller file_name.py 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.
PyTutorials old as hell but the reason it doesn't work is Windows 7 CMD. Trying to figure out the prefix to use here myself (ie instead of "pip" you use "py -m pip")
Thanks a lot, finally someine making it clear. Every tutorial is like "use this command" but they don't show in what I was supposed to use it, and none of the other tutorials I saw did the first thing with the path.
There are spaces in between "pyinstaller --onefile --hidden-import" which I didn't notice. And now there is another problem - Python 3.7 is not supported by pyinstaller :( Found on github.com/pyinstaller/pyinstaller/issues/3219#event-1812488416
bro you made my life easy , I made a tcp reverse shell in python, and wanted to change it into an exe file, I couldn't for hours, after watching your tutorial i was able to turn the script into a single executable file.
just tried with my system. the path configuration i couldnt do it your way as am using windows 8 atm. For this i need to run "set path=%path%;C:\ython27". Anyway the rest is just as it is. Thanks again
Very nice video! It's so hard to find a good tutorial on this and you just explained it super easy. One more small tip: I program at work and I don't have admin rights so I cannot add a path like shown. If anyone else has this problem: you can just open cmd and manually go to the scripts folder with the 'cd' command and pip install will work just the same.
I'm glad you liked it! Also that tip is very helpful, a lot of people that watch these videos don't understand little tricks like that (or even absolute references)
Thanks for answering on my comment. I'm actually really new to python, started a few weeks ago with this guide: automatetheboringstuff.com/, it's really great. But now I have the chance to ask you I have one question: I often come across tutorials that use 'python' as a command in cmd, but that doesn't work for me and when I look for a solution it says I need to add the path (which I can't), but it also doesn't work when I manually go to the path as I described. Is there any way to make it work without having admin rights?
Oh wait I just realised that was kind of a stupid question. Python probably isn't a command but it just launches python.exe and I think my command line was in the scripts directory for pip but python.exe isn't there so... I'll check it tomorrow but I think I just figured it out.
When using cmd, you can cd to where your python instillation is located. Make your current working directory the same as where python.exe is located. Now you can simply call ./python.exe
Assuming the python script runs properly by itself then this would have been caused by an incorrect configuration or third-party modules. The best way to find what the issue is, is to add `--debug all` to your command and then re-package it. This will mean the exe is now in a debugging mode. Open up cmd and then run the exe using cmd e.g. "C:/folder/path/myexe.exe". Any errors will be preserved in the console which you were previously missing.
PS: I had a "invalid continuation byte" error, but I found out that was because one of the characters in the code was an "ä", so I changed it to "a" and it worked. Something to do with utf-8 encoding.
I got an error while installing pyinstaller. You never mentioned what to do, Or maybe I missed, Idk. THANKS! YOUR VIDEO IS AMAZING! 10/10! Every tutorial must be like this! It's so good!!!
What was your error? I can't really help with simply "I got an error while installing pyinstaller." What is the difference between PowerShell and cmd? PowerShell works just fine; as clearly stated in the description.
Love you bro!! You tutorial was clean, great, to the point. It would be nice if you used some calm background music and use a Audio editor to dampen your voice.
Wow, that's actually a really good idea. I'll be honest, I haven't even thought about that since my main goal was to make videos that don't waste time. Thanks heaps for your opinion!