How to turn your Python file (.py) into an .exe (Tutorial 2021)

preview_player
Показать описание
Hey guys! How's it going? In this video I'll be showing you how to create a .exe in Pycharm using Python. Cool right? Let me know how it goes in the comment section below!
Рекомендации по теме
Комментарии
Автор

if you want to save but don't want the giant cmd window opening every time you run the file just add "--noconsole" after "--onefile"

cuaitzzz
Автор

Why can't people makes simple videos that work like yours?
So gud, thank you maan

alessandroricci
Автор

You are a hero, thank you a bunch . I had just commented on a similar video but with an approach towards cmd and I kept on getting errors. Once again nice video

kamsiosuachalla
Автор

Short, effective, right on point. Thank you for this video man!

abidmorshed
Автор

I thanks by heart. Finally this video after watching a lot of other videos. Thanks a lot Sir.

justbelieve
Автор

Short precise and extremely helpful Thanks

BhajansAshwin
Автор

simple and effective video, but I'm kinda curious if the program will still work if I don't install certain libs when using it's exe in another computer.
help is greatly appreciated and again a very nice video, keep up the work.

Noel_VI
Автор

to do this in the newer versions you have to
1) Install python to path and add to environment variables (WEB NOT MICROSOFT)
2) Open cmd
3) Type "cd (your code location)" make sure to remove the parenthesis and quotes
4) Now just follow the video but type the commands in cmd
5) If your game crashes on start, drag all the necessary files such as pictures into the "dist" folder
6) OPTIONAL: add -w after --onefile to have the cmd prompt off
7) Don't call me a nerd thanks

kryurt
Автор

Thanks for the info BTW, sometimes python .exe files close immediately, if that happens use this command at the end of the program. input("Press enter to close program")

velazqg
Автор

Exactly what I was looking for and very concise. Thank you sir!

jimfallowfield
Автор

SBU - Simple But Useful tutorial. Marvellous!

BravoTechAI
Автор

Great tutorial, very practic and easy to understand! Thanks!

MartinoDeanMusic
Автор

I suggest making this a short so many others can view, but a GREAT video

nenesinam
Автор

Thank you so much bro your a life saver

Sorendagoat
Автор

Great vid thanks, What to use for production level?

sushantpawar
Автор

Great straight to the point video. Will that exe work on a different computer?

kevinfoendoe
Автор

Would you help me! During the process, the pycharm states "AttributeError: Module 'PyQt5' has no attribute '__version__'". I find that there is no PyQt5. Once I go to install PyQt, it was stated the "conda" is failure. The conda can not be installed in terminal too. Thanks

williamyung
Автор

literally my favourite video ever. thanks

amanxo
Автор

will it run in other PCs not having anytime of libraries we used in project.

habibhussainhabib
Автор

i just finished my first pythom project : ) I'm so happy!

thethdimention