【问题标题】:Error: This version of PyQt5 requires sip 4.16.6 or later错误:此版本的 PyQt5 需要 sip 4.16.6 或更高版本
【发布时间】:2015-12-05 13:24:00
【问题描述】:

在安装过程中,pyqt5无法识别最新的sip版本

sip 安装:

sip-4.17$ sudo python3 configure.py
This is SIP 4.17 for Python 3.4.3 on linux.
The SIP code generator will be installed in /usr/bin.
The sip module will be installed in /usr/lib/python3/dist-packages.
The sip.h header file will be installed in /usr/include/python3.4m.
The default directory to install .sip files in is /usr/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...

已安装正确的 sip 版本

~/Downloads/sip-4.17$ sudo python3 configure.py --version
This is SIP 4.17 for Python 3.4.3 on linux.
4.17

Pyqt 安装:

    PyQt-gpl-5.5.1$ sudo python3 configure.py
    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    This is the GPL version of PyQt 5.5.1 (licensed under the GNU General Public
    License) for Python 3.4.3 on linux.

    Type 'L' to view the license.
    Type 'yes' to accept the terms of the license.
    Type 'no' to decline the terms of the license.

    Do you accept the terms of the license? yes
    Found the license file pyqt-gpl.sip.
    Error: This version of PyQt5 requires sip 4.16.6 or later.

有什么提示吗?


分销商 ID:Ubuntu
说明:Ubuntu 14.04.3 LTS
发布时间:14.04
代号:值得信赖的

Linux DSKTOP 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

【问题讨论】:

  • 尝试使用--sip 选项。

标签: ubuntu-14.04 pyqt5


【解决方案1】:

我使用

安装了 SIP
make
sudo make install

PyQt 安装顺利

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-04-26
    • 1970-01-01
    • 2014-04-26
    • 1970-01-01
    • 2014-08-22
    • 2019-03-14
    • 2018-11-14
    • 1970-01-01
    相关资源
    最近更新 更多