我在MacOSX10.10.2上安装PyQt5.4.1和Python3.4有问题。我已经跟踪了这些建议,但是发生了以下情况:
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.
发布于 2015-05-31 12:15:57
当您使用"make install"
安装sip时,您应该会看到以下一行
cp -f sip /Library/Frameworks/Python.framework/Versions/2.7/bin/sip
当您用PyQt配置"python configure.py"
时,使用路径cp -f sip /Library/Frameworks/Python.framework/Versions/2.7/bin/sip
之类的内容添加--sip参数。
我有同样的问题,在你的文章中描述,现在它运行良好。
发布于 2015-06-24 21:55:37
试着打字:
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的正确版本。
警局。别忘了更改你的用户名'Lexynux‘!
https://stackoverflow.com/questions/29144522
复制相似问题