PyInstaller + PyQt5 + QML: QtQuick is not installed

后端 未结 3 1779
南笙
南笙 2021-01-14 02:35

I\'m trying to build an app using pyinstaller, PyQt5 and qml (see files below) using the following command.

pyrcc5 pyqt5_qml.qrc > pyqt5_qml_qrc.py
pyinst         


        
3条回答
  •  無奈伤痛
    2021-01-14 03:16

    For me it on Windows this ended up being the QML2_IMPORT_PATH environment variable had not been set. Once I set this to "C:\Python35\Lib\site-packages\PyQt5\qml" it worked!

提交回复
热议问题