Error installing requirements - dlib

I am not able to install dlib it seems. I tried changing it to dlib-bin as suggested in one of the answers as well but it dindn’t work. Adding cmake in requirements.txt gives same error.
App link:

I am new to this and following the tutorial. I have tried other platforms like render and cyclic too and it is stuck in dlib part. I am not able to figure out how to solve this.

Error Message:

 note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dlib
  Building wheel for face-recognition-models ( started
  Building wheel for face-recognition-models ( finished with status 'done'
  Created wheel for face-recognition-models: filename=face_recognition_models-0.3.0-py2.py3-none-any.whl size=100566169 sha256=9edb60737703401ed35ab1a790580ba81a351962b2b96738410d5b512c585c40
  Stored in directory: /tmp/pip-ephem-wheel-cache-zbhf00zz/wheels/22/a8/60/4a2aeb763d63f50190f4c4e07069a22245347eeafdb3a67551
  Building wheel for validators ( started
  Building wheel for validators ( finished with status 'done'
  Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19580 sha256=f99950d6a7805b113a923d3dfc2139d15b260ea10201d25ceb50ef1267112da7
  Stored in directory: /tmp/pip-ephem-wheel-cache-zbhf00zz/wheels/2d/f0/a8/1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849
Successfully built face-recognition-models validators
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

Found one solution in the community. It solved my issue.
Keeping the post so that someone else in future might find it useful.

1 Like

Hey @Bijay_Shah ,

just to clarify, did you also mention dlib under requirements.txt?

Libraries don’t always function properly when deployed if their working version is not mentioned in that file.

dlib-bin worked and forking the face_recognition library helped.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.