Notes

PyInstaller packages together a Python application and its dependencies into a single executable.

Usage

Mac

pyinstaller --hidden-import={library_name} --path /path/to/python app.py

Windows

pyinstaller --onefile --hidden-import={library_name} --path /path/to/python app.py

Links

PyInstaller Manual — PyInstaller 6.0.0 documentation