This tool simplifies the process of converting Python scripts into executable files (.exe on Windows, etc.) using PyInstaller. Instead of typing long command-line arguments, you interact with a user-friendly prompt system that guides you through all available options.
- Interactive Prompts: Answer simple yes/no and text questions
- Smart Defaults: Remembers your last settings for faster subsequent builds
- Rich Interface: Beautiful, colorful console output with progress indicators
- Comprehensive Options: Access to all major PyInstaller features
- Error Handling: Clear feedback and help system built-in
- ๐จ Beautiful Interface: Rich-powered console with panels, tables, and live progress
- ๐ Flexible Output: Choose between single file or directory bundles
- ๐ผ๏ธ Custom Icons: Add custom icons to your executables
- ๐ Windowed Apps: Create GUI applications without console windows
- ๐ฆ Hidden Imports: Automatically include hard-to-find dependencies
- ๐ซ Module Exclusion: Exclude unnecessary modules to reduce size
- ๐ Data Inclusion: Bundle additional files and data
- ๐๏ธ Compression: UPX compression support for smaller executables
- ๐ Encryption: Bytecode encryption for added security
- ๐ Version Info: Add detailed version information to executables
- ๐ ๏ธ Developer Mode: Advanced options for power users
- ๐พ Persistent Settings: Remembers your preferences between runs
- Python 3.7 or higher
- pip (Python package installer)
-
**Download main.py from this repository **
Install the latest release or packages -
Install dependencies
cd Downloads pip install -r requirements.txt -
Run the converter
python main.py
That's it!
- Launch: Run
python main.py - Select Script: Enter the path to your Python file
- Configure: Answer the prompts for your desired options
- Build: Let PyInstaller do its magic
- Done: Find your executable in the output directory
The tool supports all major PyInstaller options through an intuitive interface:
| Option | Description | โน๏ธ |
|---|---|---|
| Output Mode | Single file vs. directory bundle | ? |
| Windowed | Hide console window for GUI apps | ? |
| Icon | Custom icon for the executable | ? |
| Name | Custom executable name | ? |
| Hidden Imports | Additional modules to include | ? |
| Exclude Modules | Modules to exclude from bundle | ? |
| Add Data | Include additional files | ? |
| UPX Compression | Compress executable size | ? |
| Version Info | Add version metadata | ? |
| Encryption | Encrypt Python bytecode | ? |
- Runtime Hooks: Custom initialization code
- Manifest Files: Windows manifest customization
- Code Signing: macOS code signing support
- Bootloader Options: Advanced PyInstaller settings
Type help at any prompt to see:
- Current configuration values
- Developer options status
- Quick reference guide
Path to Python file: my_app.py
Executable name: MyApp
Output directory: dist
Build as single file? Yes
Windowed (no console)? Yes
Icon path: icon.png
... (other options as needed)
Path to Python file: cli_tool.py
Executable name: MyTool
Output directory: build
Build as single file? Yes
Windowed (no console)? No
Hidden imports: requests,beautifulsoup4
... (other options as needed)
Enable developer mode for advanced PyInstaller options:
- Custom spec file paths
- Work directory specification
- Alternative Python executable paths
py-to-exe-converter/
โโโ main.py # The file to convert
โโโ build
โโโ idk build stuff # Build Stuff
โโโ dist # EXE File output folder
โโโ main.exe # The Exe File
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- PyInstaller - The underlying packaging technology
- Rich - Beautiful console output library
- EmanuelPlays - Original creator
"Module not found" errors:
- Use "Hidden Imports" to include missing modules
- Check your Python environment has all dependencies
Large executable size:
- Use "Exclude Modules" to remove unnecessary code
- Enable UPX compression
- Consider onefile vs onedir based on your needs
Icon not showing:
- Ensure icon file exists and is in a supported format (.ico recommended)
- Check file path is correct
Build fails:
- Ensure PyInstaller is properly installed
- Check Python version compatibility
- Try running with "Clean build" option
- Check the PyInstaller documentation
- Open an issue on GitHub
- Type
helpduring interactive mode for current configuration
Made with โค๏ธ by EmanuelPlays