PyQt4.QtGui导入错误

时间:2017-10-23 19:56:00

标签: python-3.x pyqt4

我已经为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
>>> 

0 个答案:

没有答案