- Make sure to have pyinstaller installed, i.e. run
pip install pyinstaller
, or in a conda environment you can runconda install pyinstaller
- Download
example.py
andexample.spec
into the same directory - From that directory run
pyinstaller example.spec
(note, run on the spec file) - That will create a subdirectory path
dist/example
go there and you can run the example
Note: This directory may contain other libraries, depending on your operating system, so it probably can only be run from that directory.