To build the file pip install pyinstaller pyinstaller main.spec Run the program after building run dist/PL.exe Screenshot of the executable After executing