我应该怎么做才能让 PyQt4 工作?
在 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 工作?
Installed python-qt4 and pyqt4-dev-tools packages on ubuntu
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
What Should i do to get PyQt4 working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。我清理并删除了所有安装文件,然后按照以下说明重新开始:
来源: http://problemssol.blogspot.com/2010/12/compile-and-install-pyqt4-for-python27.html
I had the same problem. I cleaned, erased all the files of installation and started all over again following these instructions:
Source: http://problemssol.blogspot.com/2010/12/compile-and-install-pyqt4-for-python27.html
看起来你的 apt 源列表搞砸了。转到 apt-get update 和 apt-get Upgrade pyqt* python-qt4 并重试。
Looks like your apt source list messed up. Go apt-get update and apt-get upgrade pyqt* python-qt4 and try again.