User Tools

Site Tools


python:standalone-python-app

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next 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 Rajekpython: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:
 <code> <code>
 +python -m pip install --upgrade pip
 +pip install [other required modules]
 pip install pyinstaller pip install pyinstaller
 </code> </code>
Line 17: Line 19:
 </code> </code>
 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:
 +<code>
 +pyinstaller.exe -F pythonscript.py
 +</code>
 +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)