| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
To create an (.exe) executable application file from a python script.
Install Inno Setup Compiler free application and Pyinstaller.
Open windows shell and run :
pip install pyinstaller
Save Python script with all the resources in one folder.
Open folder and press 'Shift + right click' select Open PowerShell window.
Run below commands:
pyinstaller myprogram.py
pyinstaller -F -i "mylogo.ico" myprogram.py
pyinstaller -F -i "mylogo.ico" myprogram.py --onefile --noconsole
pyinstaller -F -i "mylogo.ico"--add-data "Additionalimage.png;." myprogram.py --onefile --noconsole
Open Inno setup to make (.exe) file which is Installable/Executable in PC, select create a new script file using Script Wizard and browse to select your application.
Select all required things for your application such as Icon of setup file, Before installation document, Licence .etc
Click Yes to all, in the end go to Output Folder get setup file of application and click on open to install.
You're done !
Save the resources in one folder, Do not save the folder inside another folder
Check Spellings before running the commands, Do not put any space in your main python (.py) programme file name.
Do not use the icon word as a name of your icon (.ico) file, always use a different name.
Do not Close Powershell window until Building EXE from EXE-00.toc completed successfully
Message not shows.
Feel free to report issues
| Back | FazBrowse Home | New Git URL |