Using auto‑py‑to‑exe can produce larger files and slower startup, but it provides a GUI for configuring settings.
- Install the tool:
pip install auto-py-to-exe
- Launch the GUI:
auto-py-to-exe
- In the interface:
- Script Location: select your
main.py
- Onefile: bundle into a single executable
- GUI/Console: choose window or console mode
- Icon: optional application icon
- Script Location: select your
- Under Additional Files, add folders:
(found inpanda3d-*.dist-info panda3d direct ursina-*.dist-info ursina
YOUR_PYTHON_FOLDER/Lib/site-packages/
) - In Advanced > –paths, add:
YOUR_PYTHON_FOLDER/Lib/site-packages/panda3d
- Set an output directory if desired.
- Click Convert .py to .exe.
Although straightforward, auto‑py‑to‑exe builds tend to be bulkier and slower to start.