PyQt5 and QtGui module not found

前端 未结 6 678
谎友^
谎友^ 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条回答
  •  Happy的楠姐
    2020-12-03 12:25

    same issue, python run py ok, but in all IDE: visual studio code/PyCharm. It will show syntax error.

    Finally I solved it by set env var PYTHONPATH to python site-packages path, e.g.

    PYTHONPATH=D:\Anaconda3\Lib\site-packages
    

提交回复
热议问题