无法打开sip-4.16.4 / siplib / siplib.sbf

时间:2014-12-10 01:14:31

标签: python macos install pyqt5 python-sip

我准备在运行OS X 10.9.5的Mac上安装PyQt。 Python 3.4.2。

根据此页面:http://pyqt.sourceforge.net/Docs/PyQt5/installation.html 我应该首先下载并安装SIP。 所以我从Riverbank下载了V4.16.4:http://www.riverbankcomputing.com/software/sip/download

我开始运行configure.py,它发出了一些正常的消息然后发出错误消息:无法打开sip-4.16.4 / siplib / siplib.sbf Python正在访问正确的文件夹,正如前几个msgs所示。 siplib文件夹中没有文件siplib.sbf(其中有一个siplib.sbf.in文件)。

    Mac-at-home:~ username$ python /Applications/sip-4.16.4/configure.py
    This is SIP 4.16.4 for Python 3.4.2 on darwin.
    The SIP code generator will be installed in
    /System/Library/Frameworks/Python.framework/Versions/3.4/bin.
    The sip module will be installed in
    /System/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages.
    The sip.h header file will be installed in
    /System/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m.
    The default directory to install .sip files in is
    /System/Library/Frameworks/Python.framework/Versions/3.4/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...
    Error: Unable to open "/Applications/sip-4.16.4/siplib/siplib.sbf"
    Mac-at-home:~ username$ 

这里是siplib文件夹内容:

    apiversions.c
    array.c
    array.h
    bool.cpp
    descriptors.c
    objmap.c
    qtlib.c
    sip.h.in
    sipint.h
    siplib.c.in
    siplib.sbf.in
    threads.c
    voidptr.c

我认为它可能是从此版本中删除的旧文件,但我查看了V4.16.3,siplib.sbf也没有。我一定做错了什么 - 但是什么?

提前感谢您的意见

PS - 我确实看到了类似的问题,但我认为答案不适用: SIP install - unable to open siplib.sbf

1 个答案:

答案 0 :(得分:0)

问题解决了:看起来必须先安装Qt。

Installing PyQt on Windows

我安装了Qt,创建了文件siplib.sbf,SIP配置过程成功结束。我认为这也是我在PS中提到的问题的原因。