-
Notifications
You must be signed in to change notification settings - Fork 0
pyinstaller
jasper-zanjani edited this page Aug 30, 2020
·
1 revision
Installing PyInstaller, even in a virtual environment, will install the pyinstaller executable to $HOME/.local/bin.
On Windows, it is installed to another directory within
LOCALAPPDATA.
pip install pyinstallerPyInstaller creates primarily 3 items:
- .spec file, named after the CLI script
- build/ folder, which can be ignored
- dist/ folder, containing the final artifact at dist/cli/cli or dist/cli/cli.exe
Several options are available
hidden-import
name
onefile
pyinstaller script.py --onefileOn Windows, if PyInstaller is run from a virtual environment without necessary modules installed, they may not be available for compilation into the artifact. This does not appear to be an issue with Linux.
- argparse ?
- array ?
- asyncio ?
- bisect ?
- csv ?
- ctypes ?
- curses ?
- datetime ?
- functools ?
- getpass ?
- glob ?
- heapq ?
- http ?
- json ?
- logging ?
- optparse ?
- os ?
- pathlib ?
- platform ?
- pythonnet ?
- random ?
- socket ?
- subprocess ?
- sqlite3 ?
- sys ?
- termcolor ?
- threading ?
- trace ?
- typing ?
- unittest ?
- urllib ?
- venv ?
- weakref ?
- winrm ?