安装用于python的Dlib库时出错
在尝试安装Dlib library for Python时,请使用本教程 本教程说要做到这一点——安装用于python的Dlib库时出错,python,python-2.7,cmake,face-detection,dlib,Python,Python 2.7,Cmake,Face Detection,Dlib,在尝试安装Dlib library for Python时,请使用本教程 本教程说要做到这一点—— cd examples mkdir build cd build cmake .. cmake --build . --config Release 我已经创建了一个构建,当我发出命令时,cmake.. 它向我显示了这个错误- CMake Error: The source directory "C:/Python27/dlib-19.4.0/python_examples" does n
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release
我已经创建了一个构建,当我发出命令时,cmake..
它向我显示了这个错误-
CMake Error: The source directory "C:/Python27/dlib-19.4.0/python_examples"
does not appear to contain CMakeLists.txt.
这些示例不需要编译,只有C++必须编译。
<>你必须编译DLIB Python接口,你会在这个C++页面下面找到关于这个信息的信息:
最简单的安装DLIB的方法: 只需在命令行下面执行
sudo apt-get install python-dev python-pip
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libx11-dev libatlas-base-dev
sudo apt-get install libgtk-3-dev libboost-python-dev
pip install dlib
您正在尝试编译python示例,这些示例不需要编译。只能编译C++示例。直接使用*.py文件即可