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 [2021/08/26 17:43] – ↷ Page moved from howto:standalone-python-app to python:standalone-python-app 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.1629996198.txt.gz · Last modified: 2023/05/29 11:53 (external edit)