PyQt5 and QtGui module not found

前端 未结 6 680
谎友^
谎友^ 2020-12-03 11:30

Is there some reason that QtGui is packaged with PyQt5???

I am using Mark Summerfield\'s Rapid GUI programming book. Obviously this book was written with Qt4 in mind

6条回答
  •  死守一世寂寞
    2020-12-03 12:35

    The problem was when I was running the PyQt5 configure script. The correct option to pass went like this:

    > python3 configure.py --qmake [path to Qt5.x]/bin/qmake
    

    I was providing the path up to bin, but did not specifically point to qmake. Go figure!

    After running the configure script like this, I was able to import all the PyQt5 modules.

提交回复
热议问题