May 2019
Intermediate to advanced
542 pages
13h 37m
English
PyInstaller is simple enough when working with a single script, but how does it work with our module-style project arrangement? We cannot point PyInstaller at our module, as it will return an error; it needs to be pointed at a Python script that serves as the entry point, such as our run.py file.
This seems to work:
$ pyinstaller run.py
However, the resulting distribution and executable are now called run, which is not so great. You might be tempted to change run.py to qtictactoe.py; in fact, some tutorials on Python packaging recommend this arrangement (that is, having the run script the same name as the main module).
If you attempt this, however, you may find you got an error such as this:
Traceback ...
Read now
Unlock full access