我安装了Ubuntu SDK,一切都很顺利。现在我想安装PyQt只是为了搞乱它。 PyQt附带Qt Creator,但它已经由Ubuntu SDK安装。如何在这种情况下安装PyQt?
答案 0 :(得分:0)
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.
答案 1 :(得分:0)
如果你使用apt-get,你可以使用命令:
sudo apt-get install python-qt4
要测试这是否有效,请打开python控制台并输入:
from PyQt4.QtGui import *
如果这没有任何错误,那就有效了!