【问题标题】:Can I install the Ubuntu SDK along side with PyQt?我可以将 Ubuntu SDK 与 PyQt 一起安装吗?
【发布时间】:2014-01-15 02:30:17
【问题描述】:

我安装了 Ubuntu SDK,一切顺利。现在我想安装 PyQt 只是为了弄乱它。 PyQt 带有 Qt Creator,但它已经由 Ubuntu SDK 安装。在这种情况下如何安装 PyQt?

【问题讨论】:

    标签: pyqt qt-creator ubuntu-13.10


    【解决方案1】:
    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.
    

    【讨论】:

      【解决方案2】:

      如果您使用 apt-get,您可以使用以下命令:

      sudo apt-get install python-qt4

      要测试这是否有效,请打开 python 控制台并输入:

      from PyQt4.QtGui import *
      

      如果这没有给出任何错误,那就成功了!

      【讨论】:

      • 成功了。看来我已经安装了 python-qt4。但我想安装 PyQt5,因为 Ubuntu SDK 适用于 Qt5。我正在安装它,但我收到错误 sip.h: No file or directory found
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-21
      • 2016-07-15
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 2013-03-31
      • 1970-01-01
      相关资源
      最近更新 更多