python:standalone-python-app
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python:standalone-python-app [2023/01/29 11:24] – created Wulf Rajek | python:standalone-python-app [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| Install PyInstaller from PyPI: | Install PyInstaller from PyPI: | ||
| < | < | ||
| + | python -m pip install --upgrade pip | ||
| + | pip install [other required modules] | ||
| pip install pyinstaller | pip install pyinstaller | ||
| </ | </ | ||
| Line 17: | Line 19: | ||
| </ | </ | ||
| This will generate the bundle in a subdirectory called dist. | This will generate the bundle in a subdirectory called dist. | ||
| + | |||
| + | To create a single standalone binary file of any python script from command prompt use: | ||
| + | < | ||
| + | pyinstaller.exe -F pythonscript.py | ||
| + | </ | ||
| + | The resulting single binary file will be in the subdirectory dist. | ||
| + | |||
python/standalone-python-app.1674991451.txt.gz · Last modified: (external edit)