您的位置:首页 > 其它

Mac 煎饼

2015-06-18 13:48 155 查看
如何卸载通过brew安装的package?

Answer:

可以通过brew rmdeps 或者brew rmtree来卸载。如果电脑没有安装rmtree,则:

$brew tap beeftornado/rmtree && brew install brew-rmtree

$brew rmtree “package”

如何安装PyQt5 on Mac 10.9?

Answer:

首先安装sip,从这个网站http://pyqt.sourceforge.net/Docs/PyQt5/installation.html。接着安装PyQt5,从网站上下载source,然后
$python configure.py


2.1 报错

Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the --qmake flag to specify the correct version of qmake.


填加命令:

python configure.py --qmake /Users/cygao/Qt/5.3/clang_64/bin/qmake


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


修改文件
/users/usrname/Qt/5.3/clang_64/mkspecs/qdevice.pri
中的:

!host_build:QMAKE_MAC_SDK = macosx10.8




!host_build:QMAKE_MAC_SDK = macosx10.9


2.3 报错

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip.


填加命令:

python configure.py --qmake /Users/cygao/Qt/5.3/clang_64/bin/qmake --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip


最后再

sudo make (或者make)

sudo make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: