Python: Convert a Python GUI Program to EXE Application Using pyinstaller

In this tutorial, we will use an example to show you how to convert a python gui program to an exe application using python pyinstaller.

Python - Convert a Python GUI Program to EXE Application Using pyinstaller

1.Creat a python gui program

from tkinter import *

root = Tk()
root.geometry("800x800")
root.title("Cocyer App")
root.configure(bg="#49A")

Label(root, text="WelCome to Cocyer", font="poppins").pack(pady=10)
root.mainloop()

In this example, we have use tkinter to create a gui program.

2.Convert gui program to exe using pyinstaller

pyinstaller --onefile --noconsole GuiPython.py

You can use command above to convert.

Run this command, you will get an exe application.