0%

MAC开发问题记录

opencv-python

  • 问题描述

    1
    2
    3
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/platforms" ...
    qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  • 解决方法

    1
    2
    pip3 uninstall opencv-python
    pip3 install opencv-python-headless
  • 原因

    opencv-python-headless :与 opencv-python 相同但没有GUI功能。适用于无界面系统。

proxychains-ng

  • 问题描述

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    [proxychains] config file found: /Users/zhouyugan/.proxychains/proxychains.conf
    [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib
    [proxychains] DLL init: proxychains-ng 4.14
    dyld: warning: could not load inserted library '/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib' into hardened process because no suitable image found. Did find:
    true/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib: code signature in (/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    true/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib: stat() failed with errno=1
    Cloning into 'themes/next-reloaded'...
    dyld: warning: could not load inserted library '/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib' into hardened process because no suitable image found. Did find:
    true/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib: code signature in (/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    true/usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib: stat() failed with errno=1
    ^C
  • 解决方案

    1
    brew install git
    1
    export PATH=/usr/local/bin:/usr/local/bin:${PATH}

    查看一下使用的是哪个版本的 git

    1
    2
    $ which git
    /usr/local/bin/git
-------The end of this article  Thank you for your reading-------