Important: Please read the Qt Code of Conduct -

Deploy Qt application that requires Python3

  • I'm working on a Qt5.15 Widget application that needs to launch some Python3 scripts and parse their stdout.
    On my dev machine all works fine, I'm using QProcess as usual.

    My concern is about the deployment of such an application. Ideally it should work on Windows and Linux (at least Windows 10 and latest versions of Debian/Ubuntu).

    What is the recommended approach? I would not rely on the final user to configure its own Python3 installation. It would be better if I can "embed" Python3 executable and its dependencies, but I'm not sure how to do it and above all if it's the right way.

  • Lifetime Qt Champion


    Pyinstaller might be an option.

Log in to reply