我已经为python3安装了PyQt4包,而PyQt4库文件可以在/ usr / lib / python3 / dist-packages / PyQt4中找到。当我导入PyQt4时没有问题,但是当我尝试从PyQt4导入QtGui时,它会显示以下错误日志。
>>> import PyQt4
>>> from PyQt4 import QtGui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python3/dist-packages/PyQt4/QtCore.so: undefined symbol: PyString_Type
>>>