'Error installing Dlib library for python
While trying to install Dlib library for Python, using this tutorial http://dlib.net/compile.html.
This tutorial says to do this -
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release
I have created a build and when I'm giving the command cmake ..
It shows me this error -
CMake Error: The source directory "C:/Python27/dlib-19.4.0/python_examples"
does not appear to contain CMakeLists.txt.
Solution 1:[1]
These examples do not need to be compiled, only the C++ one have to.
You will however have to compile the dlib python interface, you will find information about this right underneath the C++ section, on this page : http://dlib.net/compile.html
Solution 2:[2]
Simplest way to install dlib: just execute below command line.
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anthony Rossi |
Solution 2 | tripleee |