pyqt5能否用于鸿蒙系统,PyQt5 在mac 10.9上安装

2. 安装 sip

tar -zxvf sip-4.16.3.tar.gz

cd sip-4.16.3

python configure.py

make

sudo make install

3.安装Qt5

4.安装Pyqt5

tar -zxvf PyQt-gpl-5.3.2.tar.gz

cd PyQt-gpl-5.3.2

sudo python configure.py -q /Users/boteng/Qt/5.3/clang_64/bin/qmake -d         /Library/Python/2.7/site-packages/ --sip             /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip --verbose

问题

Project ERROR: Could not resolve SDK path for 'macosx10.8'

解决办法

~/Qt/5.3/clang_64/mkspecs/qdevice.pri

change the following line:!host_build:QMAKE_MAC_SDK = macosx10.8

to this:!host_build:QMAKE_MAC_SDK = macosx10.9

sip/QtPrintSupport/qprinter.sip:28:10: fatal error: 'qprinter.h' file not found

最后还没找到如何修改

使用brew 安装  前提需要安装python 3

brew install -v pyqt5

Installing PyQt

You will need the latest version of Python(currently 3.3.3). Make sure this is installed and that you add the executable to the system path. This option is automatically available from within the installer.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值