我应该怎么做才能让 PyQt4 在 Ubuntu 上运行?

我应该怎么做才能让 PyQt4 在 Ubuntu 上运行?

在 ubuntu 上安装了 python-qt4 和 pyqt4-dev-tools 包

Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtGui
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: the sip module implements API v8.0 but the PyQt4.QtGui module requires API v7.1

我应该怎么做才能让 PyQt4 工作?

相关内容