Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装用于python的Dlib库时出错_Python_Python 2.7_Cmake_Face Detection_Dlib - Fatal编程技术网

安装用于python的Dlib库时出错

安装用于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

在尝试安装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 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文件即可