- Make sure to have pyinstaller installed, i.e. run
pip install pyinstaller, or in a conda environment you can runconda install pyinstaller - Download
example.pyandexample.specinto the same directory - From that directory run
pyinstaller example.spec(note, run on the spec file) - That will create a subdirectory path
dist/examplego 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.