A user-friendly graphical interface built with Python and PySide6 to convert your Python (.py) scripts into standalone Windows executables (.exe) using the power of PyInstaller.

- Easy-to-use graphical interface.
- Select script location, icon file, and version file via file dialogs.
- Choose between creating a single directory (
--onedir
) or a single file (--onefile
) executable. - Select between console-based (
--console
) or windowed (--windowed
, hides console) applications. - Specify additional files to bundle with the executable.
- Define custom build paths.
- Import and Export configuration settings.
- View the
pyinstaller
command being generated. - Real-time log output from
pyinstaller
.
- Python 3.x installed on your system.
pip
(Python package installer).- PyInstaller: This GUI application is a front-end for PyInstaller. You must install it separately.
-
Install PyInstaller: Open your terminal or command prompt and run:
pip install pyinstaller
-
Get the Py to Exe Converter GUI:
- Option A: Clone the repository:
git clone https://github.com/riteshkarmakar/py-to-exe-converter.git cd py-to-exe-converter
- Option B: Download a release:
Go to the Releases page of this repository and download the latest version (e.g., a
.zip
file or a pre-built executable).
- Option A: Clone the repository:
-
Install Dependencies (if cloning): If you cloned the repository, navigate to the project directory and install the required Python packages:
pip install -r requirements.txt
This application may be false flagged as a virus by Windows Defender. To exclude the app from being flagged:
-
Open Windows Security.
-
Navigate to Virus & threat protection.
-
Click Manage settings under Virus & threat protection settings.
-
Scroll down and click Add or remove exclusions under Exclusions.
-
Click Add an exclusion, then select Folder and choose the folder:
C:\Users\<your-username>\AppData\Local\Programs\Py to Exe Converter
Replace
<your-username>
with your actual Windows username.
- Ensure PyInstaller is installed: If you haven't already, install PyInstaller using
pip install pyinstaller
. - Launch the Application:
- If you cloned the repo: run
cd src
andpython main.pyw
from the terminal in the project directory. - If you downloaded a pre-built executable: double-click the executable file and install it.
- If you cloned the repo: run
- Configure Options:
- Script Location: Browse and select the Python
.py
file you want to convert. - Icon Location (Optional): Browse and select an
.ico
file to use as the icon for your executable. - Version File Location (Optional): Browse and select a version file for advanced version information embedding.
- One Directory / One File: Choose whether PyInstaller should bundle everything into a single executable file (
One File
) or create a directory containing the executable and its dependencies (One Directory
).One Directory
is often faster to start and easier to debug. - Console Based / Window Based: Select
Console Based
if your script is a command-line application or if you want the console window to appear. SelectWindow Based
for GUI applications (like those made with PySide6, Tkinter, etc.) to hide the console window. - Additional Files (Optional): Use the "Additional Files" tab to add data files, assets, or other non-Python files that your script needs to run.
- Build Paths (Optional): Customize where temporary build files and the final executable are placed.
- Script Location: Browse and select the Python
- Run Conversion: Click the "Run" button.
- Monitor Output: Check the "Log" tab to see the output from PyInstaller during the conversion process. Any errors will be displayed here.
- Find Executable: Once finished, your executable will be located in the
dist
subfolder within your project directory or the selected location.
This application utilizes the following libraries:
- PyInstaller: For the core functionality of converting Python scripts to executables.
- PySide6: For creating the graphical user interface.
- requests For checking updates.
- Ritesh Karmakar
- Email:
[email protected]
This project is licensed under the GNU General Public License v3.0.
For the full license text, please see the LICENSE file included in this repository or visit https://www.gnu.org/licenses/gpl-3.0.html.