pyqt - PyQt5无法导入 QtGui,QtCore等

[OS] -Windows 764bit

[Version] -Python 3.4 -PyQt5.4.1


import sys
from PyQt5.QtWidgets import QtGui, QtCore

我不能在QtWidgets中导入QtGui,QtCore ,我有qtgui.pyd和qtcore.pyd,但是我不能import它们...

时间:

你的导入对PyQt5不正确:


import sys
from PyQt5 import QtGui, QtCore

如果要导入QApplication


from PyQt5.QtWidgets import QApplication

pyqt4_differences

...