

The other is “sounds” folder which is used to store all the sounds files, including.

One is “images” folder which is used to store all the image files. spec fileĪs we know, there are two sub folders within the PgZero project. Step 4: Stop the above installation process and edit. If your Python file has different name, feel free to use it. exe file will be named code-challenge.exe. The last parameter specifies the python file you want to build. This is to ensure that previous failed building will not influence the next trial. “–clean” parameter means that PyInstalle caches and removes temporary files before building. “–onefile” parameter means that the final executable is a simple file (on Windows OS, it is. Without specifying this option explicitly, the building process will fail. Here, the Pyinstaller will collect all the files within the PgZero module. “–colllect-all pgzero” means to collect all the submodules, data files, and binaries from the specified package or module. but wait! This is not the last step.īefore we move to the next step, I will introduce the purpose of each parameter in PyInstaller command used here. It seems that till now, my steps are just those typical ones mentioned by the other posts. Now, you could run PyInstaller command in CMD window.
