Python

From Smithnet Wiki
Jump to navigation Jump to search

PIP

On Windows, start pip with:

py -m pip

Python Installer

pip install pyinstaller

Add C:\Users\<user>\AppData\Roaming\Python\Python312\Scripts to PATH:

pyinstaller --onefile file.py

and the resultant executable will be in the dist directory.