我安装了Ubuntu SDK,一切都很顺利。现在我想安装PyQt,只是为了摆弄它。PyQt附带了Qt Creator,但Ubuntu SDK已经安装了它。在这种情况下如何安装PyQt?
发布于 2013-12-28 00:37:34
1) QtCreator is a Qt/C++ developing IDE, so you may already have Qt intalled.
2) Downloads the corresponding's Pyqt, for example, if you have already 4.8.10 Qt installed, then try to download the PyQt 4.8.4.
3) Follow the readme instructor to have it installed.发布于 2013-12-28 01:00:11
如果你使用apt-get,你可以使用下面的命令:
sudo apt-get install python-qt4
要测试此方法是否有效,请打开python控制台并输入:
from PyQt4.QtGui import *如果这没有给出任何错误,那么它起作用了!
https://stackoverflow.com/questions/20801688
复制相似问题