Qt World Summit: Register Today!

Pyinstaller and QML

  • Can someone help me?

    Is there a way that I can use Pyinstaller with PyQt5 and QML? Because I run pyinstaller but when I run the .exe file it says "QtQuick is not installed"

    I have visited the stackoverflow page like a thousand times but none of the answers worked for me

  • I think I solved it

    I hope this could help

    After hours, I did something simple, but for me it worked

    In my main.py I mean the file in which you load the QML file I added

    import PyQt5.QtQuick

    And then run pyinstaller :

    pyinstaller -F - -onefile main.py

    And it worked

Log in to reply