2017-06-16 193 views
1

嘗試安裝用於Python的Dlib庫時,使用本教程http://dlib.net/compile.html爲python安裝Dlib庫時出錯

本教程說,要做到這一點 -

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. 
+0

您試圖編譯python的例子,它不需要被編譯。只有C++的例子可以被編譯。只需直接使用* .py文件即可 –

回答

1

這些例子不需要編譯,只有C++必須編譯。

但是你必須編譯DLIB Python接口,你會發現這個正確的C++部分下面的信息,在此頁:http://dlib.net/compile.html