'how to specify the paths for boost so as to build dlib successfully on ubuntu
I'm trying to install face-recognition on ubuntu but dlib keeps failing to build. I tried running python3 setup.py install but it returned some error about boost. After installing boost it still can't locate it.
how can I specify the paths for boost(for /path/to/dir/boost_1_78_0 and /path/to/dir/boost_1_78_0/stage/lib) An online source suggested that I append it to the CMakeLists.txt but there are two files with that name in the dlib-19.6 folder.ie. /path-to-dir/dlib19.6 has CMakeLists.txt and /path-to-dir/dlib19.6/dlib also has CMakeLists.txt. which one is the right one?
how can I solve the issue below:
/tmp/pip-install-md97yl8n/dlib_c8973decd1e045cb9182990e2e1f228e/dlib/external/pybind11/include/pybind11/detail/common.h:112:10: fatal error: Python.h: No such file or directory 112 | #include <Python.h> | ^~~~~~~~~~ compilation terminated.
which is part of the error message output by the terminal when I run pip install face-recognition
- is there any way that I could automatically install dlib and boost and have the system automatically specify the necessary paths?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
