我正准备在运行 OS X 10.9.5 的 Mac 上安装 PyQt。蟒蛇 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 正在访问正确的文件夹,如前几个消息所示。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 安装 - 无法打开 siplib.sbf