PyQt5.4.1无法在Mac OS X 10.10.2上使用python 3.4进行安装

时间:2015-03-19 12:24:52

标签: python macos

我在使用Mac OS X 10.10.2上的Python 3.4安装PyQt5.4.1时遇到问题。我已关注these suggestions,但会发生以下情况:

    Nates-iMac:PyQt-gpl-5.4.1 Nate$ python configure.py --destdir /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages --qmake ~/Qt5.4.1/5.4/clang_64/bin/qmake
    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    This is the GPL version of PyQt 5.4.1 (licensed under the GNU General Public License) for Python 3.4.2 on darwin.

    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: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip.

2 个答案:

答案 0 :(得分:0)

使用"make install"安装sip时,您应该会看到类似

的行
cp -f sip /Library/Frameworks/Python.framework/Versions/2.7/bin/sip

使用"python configure.py"配置PyQt时,使用路径cp -f sip /Library/Frameworks/Python.framework/Versions/2.7/bin/sip

之类的内容添加--sip参数

我遇到了与帖子中描述的问题相同的问题,现在它运行正常。

答案 1 :(得分:0)

尝试输入:

python3 configure.py -q /Users/Lexynux/Qt5.4.2/5.4/clang_64/bin/qmake -d /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/

因为那是你安装的python版本吗?所以你必须执行正确版本的python。

PD。 不要忘记为您更改用户名'Lexynux'!