Mac 煎饼

来源:互联网 发布:加强网络阵地建设 编辑:程序博客网 时间:2024/04/26 08:17
  1. 如何卸载通过brew安装的package?
    Answer:
    可以通过brew rmdeps 或者brew rmtree来卸载。如果电脑没有安装rmtree,则:

    $brew tap beeftornado/rmtree && brew install brew-rmtree
    $brew rmtree “package”

  2. 如何安装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

0 0