【问题标题】:Install dlib in python3 on mac在mac上的python3中安装dlib
【发布时间】:2017-05-26 04:00:51
【问题描述】:

得到以下错误:

Collecting dlib
  Using cached dlib-19.1.0.tar.gz
Installing collected packages: dlib
  Running setup.py install for dlib ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/x1/bsml9c1532x102zlxhqt_k380000gn/T/pip-build-_1n6svbf/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/x1/bsml9c1532x102zlxhqt_k380000gn/T/pip-0m_zvdwp-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    error: Cannot find cmake, ensure it is installed and in the path.
    You can install cmake on OSX using `sudo brew install cmake`.
    You can also specify its path with --cmake parameter.

    ----------------------------------------

然后 sudo brew install cmake 也没有安装。 对此的任何解决方案。

【问题讨论】:

    标签: macos python-3.x image-recognition dlib


    【解决方案1】:

    也许你应该使用没有 sudo 的 brew..

    brew install cmake
    

    【讨论】:

      猜你喜欢
      • 2019-07-10
      • 2017-11-02
      • 2018-09-18
      • 2018-03-27
      • 1970-01-01
      • 2022-01-25
      • 2015-11-07
      • 2020-02-22
      • 2017-05-19
      相关资源
      最近更新 更多