Qt for Python & py2exe¶
Deploying an application using py2exe requires writing a small setup.py file. It is explained in the Tutorial.
py2exe is not generally aware of Qt. It merely copies the dependent libraries of the application to the dist directory, so, the plugins, QML imports and translations of Qt are missing.
The latter need to be copied manually after running py2exe. This can be achieved by running the windeployqt tool from the Qt SDK on the Qt libraries present in the dist directory, for example:
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.