Python py to exe 🏃

  Рет қаралды 84,485

Bro Code

Bro Code

3 жыл бұрын

python convert .py to .exe file tutorial example explained
#python #py #exe
***********************************************************
(Windows Defender may prevent you from running)
(make sure pip and pyinstaller are installed/updated)
1. cd to directory that contains your .py file
2. pyinstaller ...
-F (all in 1 file)
-w (removes terminal window)
-i icon.ico (adds custom icon to .exe)
clock.py (name of your main python file)
3. exe is located in the dist folder
***********************************************************
Bro Code merch store 👟 :
===========================================================
teespring.com/stores/bro-code-5
===========================================================

Пікірлер: 112
@BroCodez
@BroCodez 3 жыл бұрын
(Windows Defender may prevent you from running) (make sure pip and pyinstaller are installed/updated) 1. cd to directory that contains your .py file 2. pyinstaller -F -w -i icon.ico clock.py -F (all in 1 file) -w (removes terminal window) -i icon.ico (adds custom icon to .exe) clock.py (name of your main python file) 3. exe is located in the dist folder
@Digital-Light
@Digital-Light 2 жыл бұрын
0. pip install pyinstaller
@Mailo1x
@Mailo1x 2 жыл бұрын
After typing cmd in a search bar of windows explorer it opens prompt with that directory. Kinda useful i guess?
@trilochandas4527
@trilochandas4527 9 ай бұрын
Just nearly find your channel. By watching your video occasionally i starting to luffing )) like your vibe, Bro! 👊
@astroo0o0
@astroo0o0 Жыл бұрын
TYSM, Bro, you really helped me, now I can send my projects to other people, even if they do not have a python :).
@eduardodelgado3973
@eduardodelgado3973 2 жыл бұрын
Mil gracias es súper simple y clara tu explicación.
@marioshusband3700
@marioshusband3700 3 жыл бұрын
bro, you are my savior in coding.
@vignesh5618
@vignesh5618 3 жыл бұрын
Useful video, thanks.
@omarsplaytimechannel
@omarsplaytimechannel Жыл бұрын
Help, I have an error. pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. I changed the directory and it never worked, I downloaded it with pip, pip3 and py -m pip
@tymoshh
@tymoshh 4 ай бұрын
you need to make it an enviroment variable i think
@Rxkx_99
@Rxkx_99 Ай бұрын
ahh yes a very casual "nuclear launch codes" folder casually sitting on ur desktop
@zuhriddinmarufjon2757
@zuhriddinmarufjon2757 Жыл бұрын
Today I finished writing my first app with this channel. Thank you very much
@behindthescene2727
@behindthescene2727 2 жыл бұрын
✌✌
@abstractideas7799
@abstractideas7799 Жыл бұрын
Great. 👍👍
@gobbogrob
@gobbogrob Жыл бұрын
WOOOO THANK YOU SO MUCH FOR THIS!!
@irakli989l5
@irakli989l5 Жыл бұрын
bro Nuclear launch codes kills me LOL
@Fuzmonster59
@Fuzmonster59 3 ай бұрын
Is it always so bulky? My 6kb .py file was turned into a 25mb .exe file, which isn't as easy to send around.
@rizaldycesarquimno6164
@rizaldycesarquimno6164 3 жыл бұрын
I have my .sql file and i place it in the folder where my .py is Then from that folder i convert .py into .exe then when I drop my database i used my .py into mysql command line hoping that the .sql file i put in the folder will serve as my database. The executable file wont run. I have to import again my .sql file into mysql command line to be able to run my .exe Please help me
@Siissioe123
@Siissioe123 Жыл бұрын
Will this work even if I have some other files to build the exe?
@daviper318
@daviper318 10 ай бұрын
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pip install pyinstaller + ~~~ + CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@Algeriawindows69
@Algeriawindows69 9 ай бұрын
use pip in the regular terminal not the python's
@hannibalbianchi1466
@hannibalbianchi1466 3 жыл бұрын
👍👍
@cristiucvladimir7909
@cristiucvladimir7909 2 ай бұрын
Thanks Bro for this video!
@hilaryeins1
@hilaryeins1 3 жыл бұрын
Very good tut, Bro! How could I Put all files and images into the executable?
@cooperdunn3808
@cooperdunn3808 Жыл бұрын
you can't
@hgt3
@hgt3 8 ай бұрын
@@cooperdunn3808 you can
@emsheeranstudio3459
@emsheeranstudio3459 7 ай бұрын
Bro you alrady put every images related to exe file and made it.. There are no need to put images into exe file.. You have already done it.
@arpanshah355
@arpanshah355 Жыл бұрын
this is gonna be so helpful for pranking my family lol
@user-uo2qm1vq8y
@user-uo2qm1vq8y 2 ай бұрын
I accidentally placed pyinstaller on the C/admin drive and now my C drive is cramped, what should I do to free up space? Can you help me? I sincerely thank you
@qoig
@qoig Ай бұрын
Have installed it but: "'pyinstaller' is not recognized as an internal or external command, operable program or batch file." Why?
@mortix99
@mortix99 29 күн бұрын
u must run it trought python terminal, not cmd
@nasrannaain8783
@nasrannaain8783 Жыл бұрын
"image.png": no such file or directory. sir how to convert with image too?
@Laioneel
@Laioneel Ай бұрын
When i transform it into a .exe, my computer can run it well, but in others computers, doesnt work because of the libraries i've imported in my code. How can i solve this?
@Panduhman360
@Panduhman360 8 ай бұрын
This is great but doesnt show how to keep image and music files attached to the game application.
@99skorpion
@99skorpion 3 жыл бұрын
Windows defender raised virus alert on my program. Is it a 100% false positive? Or pyinstaller is not safe?
@cyberroland8061
@cyberroland8061 Жыл бұрын
made some of my programs into .exe but 2 weeks later all my . exe programs say an error message and code return -1.
@manuelvaal1257
@manuelvaal1257 2 жыл бұрын
this guy is blessing us
@TeGoatOfMinecraft
@TeGoatOfMinecraft 7 ай бұрын
it dosent work. the cmd says it dont know what pyinstaller is
@popenv9471
@popenv9471 7 ай бұрын
On macbook, I can’t like that. Please, can you make video, How to do like that on mac OS
@learningtho582
@learningtho582 2 жыл бұрын
Awesome Video! Thanks for the great help!
@popninetyone
@popninetyone 7 ай бұрын
Please can you show me, How can I do it on Mac OS?
@praveendesu
@praveendesu Жыл бұрын
I installed pyinstaller successfully, but I'm getting this error when trying to convert a python file to .exe. Please help. 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.
@Sami_Wali
@Sami_Wali Жыл бұрын
same
@evylah2
@evylah2 Жыл бұрын
same
@imlobinho
@imlobinho 11 ай бұрын
same
@teradefense5905
@teradefense5905 2 жыл бұрын
But why is it so slow to execute. Does that have anything to do with the libraries installed on my machine. Should I make an EXE file from a python file from a virtual environment? Or that is just how EXE works?
@alexdefoc6919
@alexdefoc6919 10 ай бұрын
If you mean the app is slow maybe it's your python code and not optimised maybe try finding a profiler and finding the problem, and if you mean it takes long to convert py to exe then it just your pc hardware performance limitations
@Algeriawindows69
@Algeriawindows69 9 ай бұрын
its how python works
@super.kebab70
@super.kebab70 7 ай бұрын
Problem is, as said above, python works like this. It will make an insanely huge .exe file out of the script because of all the dependencies with the libs and stuff, making the computer need time to run/open it. Even on this video, this simple clock app weighs like 8MB, which is already really big for a .exe file. Not here to hate on the video though, that's cool to make an app with python ! It's just not the most optimized way
@mystic9609
@mystic9609 Жыл бұрын
I want to know the process, can't find info on it 😢
@Boofydev
@Boofydev 3 жыл бұрын
My command prompt doesnt want to change directory :(
@sammyay-man2754
@sammyay-man2754 7 ай бұрын
Have you tried pyscript?
@creemcheese9416
@creemcheese9416 Жыл бұрын
Thanks so much I will try this and this is why it wouldn't work I never set a directory
@PilotTurtle
@PilotTurtle 2 жыл бұрын
i just get 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. what should i do? i installed pyinstaller
@justwei5668
@justwei5668 2 жыл бұрын
this i even added the variable to the system path
@reptileita
@reptileita 2 жыл бұрын
Reinstall python and during the installation check the system path
@ganeshkumarvenkatesan30
@ganeshkumarvenkatesan30 Жыл бұрын
First add pyinstaller in pycharm (click file /settings/click on your project/ then project interpreter …. Click the “+” button to add pyinstaller (and pip also).. Also, write down the python interpreter path here as well (example: C:\Users\eddie\AppData\Local\Programs\Python).. you can search this path in file explorer and then click view/unhide to get the Scripts folder portion of the path.. include this as part of the path when writing it down)
@marioshusband3700
@marioshusband3700 3 жыл бұрын
When I try to open the executable (yes my antivirus was off), it says "Fatal error detected" and "Failed to execute script calculator"(my program was a calculator)
@utkarshsingh1584
@utkarshsingh1584 3 жыл бұрын
Some or the other library file would have not got compiled try running your program with Idle first or complie your program with pyinstaller -F -i 'icon file' 'python file' in this way you will either get to know your error in IDLE or in cmd 😊
@abdelrahmansameh5183
@abdelrahmansameh5183 Жыл бұрын
i have an error that the program after be exe it is run always never stops i have made it in multiprocessing @Bro Code
@zahramanafi4793
@zahramanafi4793 Жыл бұрын
I did the same but I recieved this error "'pyinstaller' is not recognized as an internal or external command, operable program or batch file." :(
@ganeshkumarvenkatesan30
@ganeshkumarvenkatesan30 Жыл бұрын
First add pyinstaller in pycharm (click file /settings/click on your project/ then project interpreter …. Click the “+” button to add pyinstaller (and pip also).. Also, write down the python interpreter path here as well (example: C:\Users\eddie\AppData\Local\Programs\Python).. you can search this path in file explorer and then click view/unhide to get the Scripts folder portion of the path.. include this as part of the path when writing it down)
@baseless7581
@baseless7581 7 ай бұрын
same
@kareemalmkahelah5338
@kareemalmkahelah5338 2 жыл бұрын
hi .. when I move the exe app to desktop the icon disappears why this happened? anywhere else the icon works fine Thank you!
@MeowValo.
@MeowValo. 2 ай бұрын
same
@autarroy
@autarroy 2 жыл бұрын
I have a jpg images in my python script How i can convert that into an exe file
@kvelez
@kvelez Жыл бұрын
Great video.
@marcbejjani1370
@marcbejjani1370 3 жыл бұрын
whenever i run the exe file, a cmd window opens and closes immediatly, can anyone help?
@saitamatechno
@saitamatechno 2 жыл бұрын
it was my problem . it iritated me , i spent a lot of time but i found the solution . you should use some input values as well as you need restarting program or program should be looping . you should use function code which is "def" . and also dont write -w before installation with cmd .
@kaolin-x4790
@kaolin-x4790 2 жыл бұрын
When you save your python file save it as .pyw then change it to exe.
@masculinshorts
@masculinshorts Жыл бұрын
pyinstaller -F after i hit enter and it shows pyinstaller: error: the following arguments are required: scriptname ,why?
@cyberroland8061
@cyberroland8061 Жыл бұрын
was that your whole line or was there more? Your supposed to type something like: pyinstaller - F (Filename).py
@enesozdemir9304
@enesozdemir9304 2 жыл бұрын
Traceback (most recent call last): File "WorldCraft.py", line 1, in ModuleNotFoundError: No module named 'ursina' What Causes This Error?
@arafatmohammadasifbamboowa2211
@arafatmohammadasifbamboowa2211 Жыл бұрын
Which library have you imported? Or it might just be a typo... Ik its too late to ask but i asked just so i can avoid the mistake too if i encounter it in future
@sceti
@sceti 5 ай бұрын
RuntimeError: Execution of 'set_exe_build_timestamp' failed - no more attempts left!
@ishaan-gupta
@ishaan-gupta 2 жыл бұрын
for some reason when i try to turn it into executable, it says "'pyinstaller is not recognized as an internal or external command, operable program or batch file.". Can someone hep me please? i checked and it says i have py installer on pip list and it isnt outdated, please help me
@yourhardworkgone
@yourhardworkgone 2 жыл бұрын
enter these two line in order pip uninstall pyinstaller pip install pyinstaller
@yourhardworkgone
@yourhardworkgone 2 жыл бұрын
@@orish_arena reinstall python
@VoNgocTrungNguyen
@VoNgocTrungNguyen 2 жыл бұрын
'pyinstaller' is not recognized as an internal or external command, operable program or batch file. how can I fix that error?
@fasteddieguitar1891
@fasteddieguitar1891 Жыл бұрын
First add pyinstaller in pycharm (click file /settings/click on your project/ then project interpreter …. Click the “+” button to add pyinstaller (and pip also).. Also, write down the python interpreter path here as well (example: C:\Users\eddie\AppData\Local\Programs\Python).. you can search this path in file explorer and then click view/unhide to get the Scripts folder portion of the path.. include this as part of the path when writing it down) Next, paste this path into environment variables by right clicking the windows icon lower/left of screen and click ‘system’.. then scroll down to advanced system settings and click this… then click environment variables .. then highlight ‘path’ and edit.. here you add a new path in edit mode of ‘path’ (this is where you paste your c:\ Users\“ “ “python/script link) Next, open cmd (search ‘cmd’ computer at lower/left of screen. Here you will need to change the directory to Python by typing ‘cd C:\Users\eddie\AppData\Local\Program\Python\Python37\Scripts You may have to type cd C:\Users Then Cd Eddie Then cd AppData (and so forth or until you get to the Scripts directory of Python37 (or another version) Finally, change the name of your .py program/game to main.py and copy/paste this main.py file into your Script directory folder (the one from above shown) .. .. go back to the cmd prompt where you changed the directory to Scripts and type: pyinstaller-onefile main.py This saves your program (changed to main.py) into main.exe .. it will be located in the ‘dist’ folder within either Scripts or the folder before that (Python37 etc) Now, just copy/paste the exe file into a new folder with whatever else was in your project folder such as images and ideas.. when you run the exe file it will need these other items in the same folder
@shorts9900
@shorts9900 Жыл бұрын
@@fasteddieguitar1891 what if I use vs code
@kingButthornGriff
@kingButthornGriff 8 ай бұрын
The best
@xlCool
@xlCool Жыл бұрын
"Nuclear launch codes" 💀💀💀
@Dripdaddy92
@Dripdaddy92 Жыл бұрын
I made a program and tried to send it to a few people via discord and email but both got flagged for malware. I cant seem to find a work around on the internet. maybe im not looking hard enough. the program works fine on my pc. Anyone have a solution for this problem?
@Algeriawindows69
@Algeriawindows69 9 ай бұрын
zip it
@Algeriawindows69
@Algeriawindows69 9 ай бұрын
most messaging apps always flag .exe files no matter what
@creepercheater0148
@creepercheater0148 3 жыл бұрын
How to do with .jar programs from eclipse?
@igorthelight
@igorthelight 3 жыл бұрын
Just google "create EXE from JAR". You will find your answer in less than a minute. I actually checked it :-)
@user-mt8ot9fc5g
@user-mt8ot9fc5g 4 ай бұрын
I trust a guy with nuclear launch codes
@fnbubbles420
@fnbubbles420 6 ай бұрын
1. cd to directory that contains your .py file 2. pyinstaller --onefile --uac-admin main.py this one works 100% better and doesnt give you a trojan when making it
@kraizabg1242
@kraizabg1242 3 жыл бұрын
it says it has a virus or potentialy unwanted software.. what to do maan
@yourhardworkgone
@yourhardworkgone 2 жыл бұрын
Windows Defender may prevent you from running the app
@joehaar1466
@joehaar1466 8 ай бұрын
So almost nobody cares that Bro has nuclear launch codes on his desktop? Hm...
@Tr0ll_Guy
@Tr0ll_Guy 11 ай бұрын
It helps alot thx!! :)
@Venta-wd6hh
@Venta-wd6hh 10 ай бұрын
it says py installer couldnt be found
@Tristan-Ware
@Tristan-Ware 11 ай бұрын
thank you so much.
@globalpepe4094
@globalpepe4094 4 ай бұрын
Thanksssss
@Lurkingbird
@Lurkingbird Жыл бұрын
I can't install pyinstaller
@DavidR...
@DavidR... Жыл бұрын
Nuclear launch codes 🤣🤣🤣🤣😎
@anafel8124
@anafel8124 Жыл бұрын
doesnt work for me
@slonbeskonechen8310
@slonbeskonechen8310 3 жыл бұрын
Thank you!!!!!!
@saveuyghurmuslims2354
@saveuyghurmuslims2354 Жыл бұрын
i want that nuclear launch code
@TouchcreatorYT
@TouchcreatorYT 2 жыл бұрын
pyinstaller isnt recognized
@jacery
@jacery 2 жыл бұрын
pip install pyinstaller
@MrEdoben
@MrEdoben Жыл бұрын
THX BRO
@MFNJairah
@MFNJairah 2 жыл бұрын
So easyyyyyyyy!
@DavidDavid-zm1kj
@DavidDavid-zm1kj Жыл бұрын
And how make multy file to exe
@jimmylee3760
@jimmylee3760 Жыл бұрын
thanks
@NOTHING-en2ue
@NOTHING-en2ue Жыл бұрын
Mac users just die 😭
@ragnarok_141
@ragnarok_141 11 ай бұрын
yes
@Quantum_phy
@Quantum_phy 2 ай бұрын
thanks but i had an issue in my code which worked perfectly fine in vs code but when i made an app it said this Traceback (most recent call last): File "imagery.py", line 2, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "cvlib\__init__.py", line 8, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "cvlib\gender_detection.py", line 3, in ModuleNotFoundError: No module named 'tensorflow'
Making an Executable from a Pygame Game (PyInstaller)
6:08
DaFluffyPotato
Рет қаралды 104 М.
How to Compile Python Files Into EXE!
4:47
Begin Secure
Рет қаралды 2,4 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 8 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 33 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 59 МЛН
Standalone Python EXE Executable - Python Kivy GUI Tutorial #20
13:00
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,3 МЛН
Convert .EXE to IMAGE!
5:18
ebola man
Рет қаралды 531 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 26 М.
Convert PY to EXE Automatically
3:05
PyTutorials
Рет қаралды 398 М.
File Transfer via Sockets in Python
14:44
NeuralNine
Рет қаралды 57 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Fixing disappearing icons and freezing on KDE plasma
2:46
linuxguy 11
Рет қаралды 104
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 2,7 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 5 МЛН