# Can not install dlib for face\_recognition

**URL:** <https://forum.opencv.org/t/can-not-install-dlib-for-face-recognition/23515>\
**Category:** Python\
**Tags:** cmake, dlib, programming\
**Created:** [August 3, 2025, 3:10pm UTC](https://forum.opencv.org/t/can-not-install-dlib-for-face-recognition/23515 "2025-08-03T15:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zamigmammadzada](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/zamigmammadzada/32/13470_2.png) [@zamigmammadzada](https://forum.opencv.org/u/zamigmammadzada)\
**Post date:** [August 3, 2025, 3:10pm UTC](https://forum.opencv.org/t/can-not-install-dlib-for-face-recognition/23515/1 "2025-08-03T15:10:35Z")

</div>

Hello everyone, I need to download the dlib library for face\_recognition but every time I get this error: “building wheel for dlib (pyproject.toml) did not run successfully” and even though I downloaded the cmake library it also gives the error “CMake is not installed on your system!”. I need your help. Thanks.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [August 3, 2025, 3:45pm UTC](https://forum.opencv.org/t/can-not-install-dlib-for-face-recognition/23515/2 "2025-08-03T15:45:57Z")

</div>

Welcome on the OpenCV Forum.

You’re looking for help with Dlib. That library is not affiliated with OpenCV.

Please visit [https://dlib.net/](https://dlib.net/) and look for “[How to compile](https://dlib.net/compile.html)” in the left sidebar. Right at the top of the article, they discuss installing Dlib for Python, and debugging any issues with that install process.

If that doesn’t help, Dlib’s github account has the [Discussions](https://github.com/davisking/dlib/discussions) feature that you can use to get help from people who deal with Dlib.

---

<div class="post-metadata">

**Author:** ![Michael\_Phillips](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/michael_phillips/32/13588_2.png) [@Michael\_Phillips](https://forum.opencv.org/u/Michael_Phillips)\
**Post date:** [August 14, 2025, 8:27pm UTC](https://forum.opencv.org/t/can-not-install-dlib-for-face-recognition/23515/3 "2025-08-14T20:27:46Z")

</div>

You might also want to check if CMake is actually in your system PATH after installing it. Sometimes it’s installed but not recognized until you restart your terminal or add the path manually.
