Macos 在mac上的python3中安装dlib

Macos 在mac上的python3中安装dlib,macos,python-3.x,image-recognition,dlib,Macos,Python 3.x,Image Recognition,Dlib,将以下内容作为错误获取: 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 "i

将以下内容作为错误获取:

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也没有安装。
任何解决方案。

也许您应该在不使用sudo的情况下使用brew

brew install cmake