How to Convert any Python File to .EXE

preview_player
Показать описание
Convert a .py to .exe in windows. Converting python files to executable's is fairly simple and we do this using pyinstaller. This method will work for one file or for multiple files that require dependencies such as images or other modules.

Python Location: C:\Users\[user]\AppData\Local\Programs\Python
[user] should be replaced with your current user

**************************************************************

**************************************************************

Please leave a LIKE and SUBSCRIBE for more content!

Tags:
- Tech With Tim
- Python Tutorials
- How to convert python to exe
- Convert python to exe
- Py to exe
- Python to executable file
Рекомендации по теме
Комментарии
Автор

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.

TechWithTim
Автор

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.

SmittyWerb
Автор

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 'cough!'.

int_t
Автор

>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.

HavenAWilliams
Автор

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.

satoriblue
Автор

@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!

MadMullins
Автор

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!!!

jankokert
Автор

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 YouTubers do that!

Cryptosonix
Автор

in the command prompt you can also write: "where python" (without quotes) to find the directory

fabiogavilan
Автор

Outstanding tutorial! Fast and directly to the point. Thanks Tim.

Scanito
Автор

The only well-made and modern tutorial I could find, thanks a lot. Extremely easy to follow

kobe
Автор

Clear, concise, brief voice. You'll definitely go far with that. Great video.

scifregizmoguy
Автор

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

shajor
Автор

THANK YOU. you explained how to fix a problem other YouTubers skipped over... I honestly didn't know what to do

badasstrapbass
Автор

1:50 You can get the Python's path by typing "where python" to cmd

ahmadgalamli
Автор

Super useful video dude, thanks a bunch

davidhochstetler
Автор

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.

thingsiplay
Автор

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.

livinlivin
Автор

Clear, concise instructions. Hard to come by these now-a-days. Thank you.

TheHackysack
Автор

Wow this really helped me. I was looking for something like this for a really long time.

kemubadap