This is the best instruction I have seen yet for creating a Python program installer. Thank you very much.
@catglue33103 жыл бұрын
Glad it helped!
@rajsinghchauhan6525 Жыл бұрын
Man seriously, just how much simple and to the point instructions were, I am really in awe and thanks for making this video your earned a sub
@catglue3310 Жыл бұрын
Glad you liked it!
@VisualsofAyan2 жыл бұрын
No words to describe how much helpful this video was!!! Thanks a million 🙏
@catglue3310 Жыл бұрын
Glad you liked it!
@akshatgupta34743 жыл бұрын
You're the real man. I made a gui version of rock paper scissors game with tkinter in python and my program contained images. Now what pyinstaller does when you use the --onefile flag is that it packs everything in one exe file which creates a temp directory and mei directory, bec of the creation of these two directories the path that I gave for my images in my code was disturbed. I tried using cx_freeze too and a lot of other .py to .exe converters but I got no success. Finally I found your video here on youtube and now my game is working as it should.
@AI_Mirror_Company2 жыл бұрын
I'm delighted bumping into your video... Thanks a lot for the given guide I made my second step Now I have a calculator
@catglue33102 жыл бұрын
Fantastic!
@random-user-s2 жыл бұрын
Title: "Faster than pyinstaller" Him: using pyinstaller....
@catglue33102 жыл бұрын
still faster than pyinstaller :P
@dr.stephen.strange3 жыл бұрын
Really helpful!! Exactly what I was looking for!!
@catglue33103 жыл бұрын
Glad it was helpful!
@sulekhabaranwal1782 жыл бұрын
same
@imibuks-replit2 жыл бұрын
Great video! I used that pyinstaller method and its pretty bad, this has been real usefull, thanks alot!
@catglue33102 жыл бұрын
Glad it helped!
@bengeorge923 жыл бұрын
Hey, this is really good! Thanks for walking through the process. :)
@catglue33102 жыл бұрын
Glad it was helpful!
@fsadd11363 жыл бұрын
Thank you! Amazing stuff. You helped me a lot
@catglue33103 жыл бұрын
You're welcome!
@sulekhabaranwal1782 жыл бұрын
thanks a man alot exactly i was looking for this for 4 months finally found it
@catglue33102 жыл бұрын
Glad you liked it!
@sulekhabaranwal1782 жыл бұрын
But how to get a code signing certificate
@pranavdesai37493 жыл бұрын
Really helpful. Thank you so much. Would recommend doing a video where you you will use pyinstaller to convert python script to exe and then use Inno Setup compiler on the same. Anyway thanks again!!
@ngr2k73 жыл бұрын
I hope this would help to install and run in another computer ? If so, what would be file size ? Exe size is bigger issue when you move it to another system
@catglue33103 жыл бұрын
Sure thing!
@catglue33103 жыл бұрын
This method makes the file size very much less compared to using pyinstaller directly to create a single exe file
@rlamarch2 жыл бұрын
Thanks for the video, it was excellent. Just what I needed.
@catglue33102 жыл бұрын
Great to hear!
@_AultraGreen_2 жыл бұрын
thank you indian man, way better than the americans
@fatimahabdulmohsin37772 ай бұрын
Finally 🎉 best solution 100%
@sucukluomlet46652 жыл бұрын
Hello, uhmm i know a year passed but can you help me for something if you see this message?When I use pyinstaller module I get this error "pyinstaller' is not recognized as an internal or external command, operable program or batch file." Do you know how can i fix it?
@catglue33102 жыл бұрын
You probably don't have pyinstaller installed. Install it using 'pip install pyinstaller' or some similar command. A quick online search for installing pyinstaller would do the job
@guaupuau38522 жыл бұрын
Thank you bro you’re very intelligent
@mobolaji.hackerx5 ай бұрын
can we use iexpress
@kombo02612 жыл бұрын
Thank you for this great tutorial. I only have one question: Can you delet the exe programm which installed the ,,app'' or not?
@catglue33102 жыл бұрын
Yes, on Windows you can delete it from the control panel. Similar to how you would uninstall windows applications
@frontogaming33382 жыл бұрын
I faced error "pyinstaller is not recognised as internal or external command pls help"
@catglue3310 Жыл бұрын
install pyinstaller using the command 'pip install pyinstaller'
@legendrags2 жыл бұрын
absolutely loved it, got a sub
@martinhoneves26 күн бұрын
I do not understand how the comparison between pyinstaller and Inno Setup. They do fundamentally different things. Inno does not make python script faster, it makes a installer file to allow users to install the compiled version of the program.
@RuhulAmin-bo7qt3 жыл бұрын
Thank you. Useful content
@catglue33103 жыл бұрын
Glad it was helpful!
@jaeshikyoon6874 Жыл бұрын
Nice!! Thank you for the video!!
@dork1161 Жыл бұрын
Python Ttkinter project not working when converted to .exe software opening properly but problem is before converting script in to exe buttons are properly working but when i converted it in to exe the gui is not responding means software is opening but kind of dummy software you'll feel like. also not showing any error help dont know how to solve also gui is made with tkinter
@ramankr00223 жыл бұрын
thank you, can u help me? my web scraping is not working for this,, the gui(made with tkinter) opens, but the automated chrome fails to open and further commands also seem not to operate. (the program uses chrome web driver and opens some url and perform some clicks)
@catglue33102 жыл бұрын
Hmm, I'm not really sure. You could try searching online. Sorry I couldn't help :/
@amonri73793 жыл бұрын
how can i include modules like numpy and pygame with this (only installed them in pycharm)
@6arek9953 жыл бұрын
when i've typed everything in cmd, i dont get anything in the 'dist' file what do i do?
@catglue33103 жыл бұрын
Oh I am not really sure why you are experiencing this. Just make sure your commands are right
@khalilebdelli6199 Жыл бұрын
thank you for the great video, when i tried this method with a bigger project with linked files and subfolders, i get an error when running for example i have some widgets to load from a widgets directory , and for some reason the program doesn't recognize it ERROR : FileNotFoundError: [Errno 2] No such file or directory: 'widgets\\main_widget.ui' i have tried replacing the main.exe file to the root of the project folder, it works when i run it using the exe from pyinstaller , but opon running after installation using your method , i get that error message
@MKSundaram2 жыл бұрын
Sir, my program has flask, mysql. How would I convert this python program to desktop app? Thanks
@catglue3310 Жыл бұрын
Flask cannot be converted to desktop app. You can deploy it as a web application
@eplusplus3 жыл бұрын
Thank you so much 🤝🏾
@catglue33103 жыл бұрын
You’re welcome 😊
@vectar2 жыл бұрын
So what's in the folder where it's installed to? Same files as if you just use pyinstaller without the onefile flag?
@catglue33102 жыл бұрын
Yes! but they aren't packed into a single big file that causes the slowdown. That's the difference
@gobindsingh2123 жыл бұрын
Hello. My antivirus says that my .exe file is infectious, please help.
@catglue33103 жыл бұрын
Yes this might be because the exe file isn't signed. This is a false positive, don't worry. The file isn't harmful if your code is fine.
@zombie-23583 жыл бұрын
It might be a false positive but if you get a trojan called something like this "Win32/w...C!mb" then your pyibstaller is infected
@videosyarego2 жыл бұрын
if I use this metod the antivirus defender wont detect it like a virus?
@catglue3310 Жыл бұрын
Yes that is possible, you need to sign the executable to avoid such issues.
@yeabsirasolomon19433 жыл бұрын
Thanks. Very Helpful
@catglue33103 жыл бұрын
Glad it was helpful!
@iamDyeus3 жыл бұрын
Subscribed Dude 🔥
@Aaron-dn4hn2 жыл бұрын
what if I modify the code in my program. how do I make sure my executable is going to be updated?
@catglue33102 жыл бұрын
You would need to compile every time you change your code
@richerite2 жыл бұрын
What’s the actual difference in this approach? In the pyinstaller extracted method also there are multiple files, same as inno setup
@catglue33102 жыл бұрын
Well, with pyinstaller you have no way of really installing your program as an application in windows. It would just be like a file that would be executed when you click on it. With this method, we install the program as an application in the system, give it desktop shortcuts and so on.
@nemeziz_prime3 жыл бұрын
And if I want to hide my main code from the end user, will this approach you showed in the video work? It's fine if the user can see other files that are linked to the main.py and are dependencies for main.py. Also, is there any suggestion regarding adding License key authentication to the software using Inno compiler or something else?
@catglue33103 жыл бұрын
Once you use pyinstaller, I dont think the end user can see the source code anyway. Not sure about license keys :/
@aayushgupta69143 жыл бұрын
Everything goes fine with Windows defender as we keep using --onefile and --windowed option from pyinstaller but as soon as I use both of them together, the red lights goes off!!!
@catglue33103 жыл бұрын
Yeah windows defender will act weird with exe files that we create. Onefile flag should be avoided, it also has some other disadvantages as I mentioned in the video
@TipsTricksSolutions3 жыл бұрын
Bro I need your help! When I convert the file into an exe file windows defender blocks it.. How can I solve that? My program does not contain any malicious codes...
@catglue33103 жыл бұрын
This is because the exe file is not signed. Turning off the anti virus temporarily might be the only fix.
@sagarvachakal95892 жыл бұрын
Add exemption in list of defender or antivirus
@TipsTricksSolutions2 жыл бұрын
@@sagarvachakal9589 how?
@nellaimuthuvels70993 жыл бұрын
can we give .py file as exe fike? how to find the exe file?
@akankshamaurya92192 жыл бұрын
Sir, my python file is login.py and my icon name is face_attendance.ico and I convert my python file to exe file exactly like you ,but when I am am going to open the exe file, it is showing that failed to execute script 'login' due to unhandled exception: bitmap "face_attendance.ico" not defined.
@akankshamaurya92192 жыл бұрын
please help sir
@catglue33102 жыл бұрын
Hmm, I'm not really sure. You could try searching online. Sorry I couldn't help :/
@AshishSingh-sy3gn3 жыл бұрын
Hi there, the .exe generated by pyinstaller is getting detected as a virus by windows defender as well as other antivirus softwares and thus I am not able to execute it. Please help
@catglue33103 жыл бұрын
This is because the exe file is not signed. Turning off the anti virus temporarily might be the only fix.
@AshishSingh-sy3gn3 жыл бұрын
@@catglue3310 okay thanks a lot, I'll try turning of the antivirus
@sagarvachakal95892 жыл бұрын
Don't turn of antivirus just add exception in defender or antivirus not to block .
@nemeziz_prime3 жыл бұрын
So if I make a single executable file (using pyinstaller --one-file ...) and then use Inno compiler, will that still be slower than the method you showed (using pyinstaller without --one-file and then using Inno compiler)?
@catglue33103 жыл бұрын
Yes it will install as a windows program but it will have slow launch time since pyinstaller compiles all files into that single file when you use the --onefile flag
@chriskeo3922 жыл бұрын
@@catglue3310 so how can I make it faster?
@bibinkunjumon Жыл бұрын
can u try streamlit similar way
@akshatsarda71513 жыл бұрын
Thank you sir . Can you pls tell how to add icon to the python file ?
@TheStrafendestroy3 жыл бұрын
-i [path to .ico file]
@TheStrafendestroy3 жыл бұрын
Image must be .ico not png or jpg
@vinaysagar36842 жыл бұрын
hi bro it was best video that i came through seeing all the videos about this topic but only problem is i just needed a setup file so i can run my gui application in another pc but after the installer in c drive program file it is having the .py file which are editable so i need to hide those so that the user cannot able to see the programs that i have done.
@catglue33102 жыл бұрын
Those python files that come with the installer must be library files. They don't probably contain your code
@dominikkomar91703 жыл бұрын
Hi, Im getting an error "WARNING: Several hooks defined for module 'win32ctypes.core'." any idea how to fix it??
@catglue33103 жыл бұрын
Oh I am not sure of this error pal :/ Retry and make sure you followed the steps as mentioned in the video
@MrinmoyHaloi3 жыл бұрын
it says warning not error
@dominikkomar91703 жыл бұрын
@@MrinmoyHaloi ceo of contributing anything to a question
@MrinmoyHaloi3 жыл бұрын
Why ?
@shadocodes50403 жыл бұрын
@@dominikkomar9170 warning doesn't mean theres a problem it just means theres potential for a problem. So, that was MH Edeetz point.
@kali88543 жыл бұрын
How to fix fatal error detected? After I run the .exe format it says that "failed to execute script main"
@catglue33103 жыл бұрын
This error usually means there's a logical error in your script. Fix any issues/bugs in your script to resolve this error. Also check if you have installed and imported all the required modules.
@godwinbarechi21073 жыл бұрын
How do go about when you have a main py file and login py file?
@catglue33103 жыл бұрын
As long as you import the required files in the right way, pyinstaller should take care of importing other files than the main.py file
@phoenixgamerz61773 жыл бұрын
Brother please tell me how to use that icon while converting python to exe...you said for now you won't be using icon for exe...but can tell what arguments or parameters is to be passed to add icon...
@catglue33103 жыл бұрын
You should include it while running the initial pyinstaller command. It is the -i flag followed by the name of your icon(which has to be a .ico file). So, for example if your icon name was myIcon.ico and your script name was main.py, the command would be pyinstaller -w -i myIcon.ico main.py
@phoenixgamerz61773 жыл бұрын
@@catglue3310 Thankyou bro....but I already researched and found out...but still thankyou for the reply
@retro.17662 жыл бұрын
it never lets me use the command pyisntaller , why is that?
@catglue33102 жыл бұрын
You probably need to install pyinstaller using the pip install command
@Tudismas3 жыл бұрын
I get this error when enter "pyinstaller main.py": error is "'pyinstaller' is not recognized as an internal or external command, operable program or batch file." what can i do to get out of this dilema?
@catglue33103 жыл бұрын
Sir, make sure you have installed Pyinstaller in your machine. If not you can do it by running the command 'pip install pyinstaller' from the command line.
@stardustbiscuits3 жыл бұрын
You have to delete python. And while downloading it again, select "add to PATH". It will work.
@retro.17662 жыл бұрын
@@catglue3310 i did and it still doesnt work, it says the same message
@saranyakumar81223 жыл бұрын
Is this same method is used to covert db connected python program???
@cpremix8593 жыл бұрын
Doesnt work for mysql
@maryamraza88505 ай бұрын
😭😭why am I getting the error
@PujaaSarangi Жыл бұрын
Thanks a lot bro !
@riteshkarmakar359710 ай бұрын
Thank you very much!
@Vmos7103 ай бұрын
kindly show for multiple python files
@novianindy887 Жыл бұрын
Hi, is it compiled to C ? or it's just a regular pyInstaller with python interpreter installed?
@RaviKumar-wm8xm3 жыл бұрын
Bro, I have installed pyinstaller but i get 'pyinstaller is not recognized......' can u solve this ?
@catglue33103 жыл бұрын
There is a possibility that you would have installed it in a virtual environment. You can try installing pyinstaller with the command "pip install pyinstaller" if you get the error 'pyinstaller is not recognized...'
@RaviKumar-wm8xm3 жыл бұрын
@@catglue3310 i did it and it succesfully installed , i run it but is giving me some errors
@LeQuietKid2 жыл бұрын
Bro if I knew I could've just accessed CMD by doing that, I wouldn't have spent like 20 hours searching for a damn video.
@catglue33102 жыл бұрын
xD
@hasithaeranga55892 жыл бұрын
very usefull 💯👍
@catglue33102 жыл бұрын
Glad you think so!
@ЮсефМехда3 жыл бұрын
Really helpful. Thank you so much. but There is a problem with convert database connected py files to exe. Everything works fine when I run the program xampp (Apache and MySQL) Parallel to the obtained program. If you stop a program xampp (Apache and MySQL). The program obtained stops working. Please help to solve this problem.
@catglue33103 жыл бұрын
MySQL should be running whenever you use the application, since it is serving the database. Your program cannot run without MySQL server running
@ЮсефМехда3 жыл бұрын
@@catglue3310 Thank you.
@amarnathreddysurapureddy91112 жыл бұрын
Hi bro i have one miracle question ? I am using 2 files one is one.py another is two.py In two.py i am imported one.py in this case how we will run pyinstaller ? Is pyinstaller taking any care?
@catglue33102 жыл бұрын
As far as I know, pyinstaller should take care of imports. Probably a stackoverflow search would give you the solution :)
@amarnathreddysurapureddy91112 жыл бұрын
pyinstaller -F -w --onefile run_gui_server.py Yes this is the command I used and I created multiple .py files to single exe
@minicuts45634 жыл бұрын
Super bro 🔥🔥
@saptakbhoumik84463 жыл бұрын
Very helpful
@catglue33103 жыл бұрын
Glad to hear that
@INSANE_-nj4xh3 жыл бұрын
whats ur name , allen?
@mahanaatma9103 жыл бұрын
nice man it's a amazing tip
@catglue33103 жыл бұрын
Glad you think so!
@kingsnow67182 жыл бұрын
I do not like this...Plz tell me how can we fast startup exe with only pyinstaller onefile.... making setup file is not a good idea in my case
@catglue33102 жыл бұрын
With pyinstaller, you cannot get fast startup with a single file
@kingsnow67182 жыл бұрын
@@catglue3310 plz let me knw any other way ..i have tried auto py also...but i dont want to make setup file..or multiple file
@sandeepanbhowmick70333 жыл бұрын
the exe file didnt launch. pls help
@catglue33103 жыл бұрын
If your raw python script also didn't launch it means there is an error in your script. If not some dependancies might not have been included in the exe file
@duckyanimation1173 жыл бұрын
just listen to an indian guy and your problem is solved :)
@manuelorellana88632 жыл бұрын
Hi, awesome tutorial, what if you need to do an update? how do you install the update? would it require an uninstall current version --> install new version sequence? what about check for updates online? can this be setup?? Thanks!
@catglue33102 жыл бұрын
I made a script that checks a specific url for any updates. Once there is an update it will download it. But I couldnt find a way to install the same, the user had to do it manually
@ayushthombare9235 Жыл бұрын
recommended..... 🤞
@suniljoshi34343 жыл бұрын
Thanks bro thanks 😘😌😘😌😀😀😀😀😀😀😀🎉🔥🔥🎉🎉🎉🎉🎉🎉
@catglue33103 жыл бұрын
Welcome 😊
@kdbmix--6853 жыл бұрын
I can't install pyinstaller
@catglue33102 жыл бұрын
try the command 'pip install pyinstaller'
@Pwnedby3 жыл бұрын
How can i store my image inside my exe file?
@catglue33103 жыл бұрын
You might need to include images as a dependancy while running the pyinstaller command. Try stackoverflow :P
@Pwnedby3 жыл бұрын
@@catglue3310 thank you bro!
@MohamedSoliman-t5f Жыл бұрын
Thx bro
@MohamedSaeed-sl6ew Жыл бұрын
great
@portilloalmendrasantos14402 жыл бұрын
THANKS
@catglue33102 жыл бұрын
Welcome
@brainfl23603 жыл бұрын
69 subcribers
@abdurrazzak16123 жыл бұрын
t
@saranyakumar81223 жыл бұрын
Is this same method is used to covert db connected python program???
@catglue33103 жыл бұрын
Yes you can convert database connected py files to exe with this method, that will work