When i try to install Face-recognition and dlib library , it says : "could not build…
- User
When i try to install Face-recognition and dlib library , it says : "could not build wheel for dlib which is required to install pyproject.toml-based projects ?
- Assistant
This error occurs because the installation of the dlib library requires some additional system dependencies. To fix this issue, you need to install these dependencies manually before attempting to install dlib.
Here's a step-by-step guide to installing dlib along with its dependencies:
-
Install CMake and Boost:
- For Ubuntu/Debian:
sudo apt-get install cmake libboost-all-dev - For macOS:
brew install cmake boost
- For Ubuntu/Debian:
-
Install other dependencies:
- For Ubuntu/Debian:
sudo apt-get install build-essential cmake - For macOS (using Homebrew):
brew install cmake
- For Ubuntu/Debian:
-
Upgrade pip:
pip install --upgrade pip -
Install face-recognition and dlib:
pip install face_recognition dlib
By following these steps, you should be able to install face-recognition and dlib without any errors related to building the wheel for dlib.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.