Convert PY to EXE

PyTutorials · 976K views · 2016 · 2:52

Open on YouTube

Python, Ruby & scripting languagesTesting, debugging & developer toolstutorial

Why Stack Overflow recommends it

Stack Overflow users link it when someone needs to package a Python script as a standalone executable that runs without Python installed.

Recommended by 4 people across 4 different months, 2018 to 2020.

What it is

A short screencast by PyTutorials showing how to turn a Python script into a Windows .exe with PyInstaller. It covers setting up pip, installing PyInstaller and compiling a script as a one-file build, with no console window, and with a custom icon.

What people said

Recommends Nummer_42O · 2018-09 · Stack Overflow · on “Python beginner problems - Tkinter, Threading and bs4 module”

@Leemosh And according to your .exe-question: There are several ways to do that (py2exe, xc_Freeze, pyinstaller, ...). I would recommend pyinstaller - it's easy to use and works quite well, even with tkinter, matplotlib and so on. Here ( [this video] ) is a very nice Video thats basically explaining how to use it. I don't think you'll need more.

Recommends Ghantey · 2019-02 · Stack Overflow · on “Python - running pygame”

To make your game run in other computer where there is no pygame installed you need to make it executable. Following package can make your script executable: pyinstaller [LINK] py2exe [LINK] Tutorial Converting to executable using pyinstaller [this video] Converting to executable using py2exe [LINK] Pyinstaller is way more easier than py2exe. But both of them works like a charm!

Recommends Maximilian Müller · 2019-09 · Stack Overflow · on “Run python program in background”

I would do it a bit different. If your plans are to convert your .py (or.pyw) file to an executable file (.exe) later than you can do it with the command "pyinstaller -w yourfilename". Here is a youtube video where someone explains it ( [this video] ). But I do not know if this works for mac the same way

Recommends voltifer · 2020-05 · Stack Overflow · on “How do I make a Python program into a Windows app?”

You will need pyinstaller and pip here is a link on how to download pip: [LINK] open up your terminal and go to the same directory where your python file is. after that go ahead and type pyinstaller filename.py you can try other commands that can make your app an icon and others in this video: [this video]