building wheel for dlib (setup.py) loop

13,556

Solution 1

To complement mshahiddev answer I added -vvv and it showed that it was working.

Just took a really long time to complete. I just had to wait.

pip install dlib -vvv

Solution 2

Memory is the issue. My AWS instance had only 1 gb space. Reading the problem intuition, I created a swap space of 6 more gb and it worked.

Now, I'm able to complete installation.

Solution 3

In my case, I just had to wait for approx. 10 mins for that "building wheel loop" to end and then it was installed successfully! Would advise to first wait for 10-15 minutes at least, before trying other answers given above.

Share:
13,556
rahul
Author by

rahul

Updated on June 17, 2022

Comments

  • rahul
    rahul almost 2 years

    trying to install dlib and face_recognition from Ubuntu taking reference from https://www.learnopencv.com/install-dlib-on-ubuntu/ but after following commands: i am stuck at:

    Building wheels for dlib, face-recognition-models
        Building wheel for dlib (setup.py) ... /(looping stick)
    
  • Yunnosch
    Yunnosch almost 5 years
    Are you saying that there is a duplicate which has asked the same and was usefully answered? In that case you should flag this as a duplicate and refer to the matching question.
  • mshahiddev
    mshahiddev almost 5 years
    No, my question was asked later ( my question was the duplicate, but received a good answer, unlike this post.)
  • Zoe stands with Ukraine
    Zoe stands with Ukraine almost 5 years
    @mshahiddev the duplicate policy doesn't require new questions to be closed as a duplicate of an old one. It usually goes by the quality of answers, which most of the time means the older one. This question could be flagged as a duplicate of your question as a result
  • Zoe stands with Ukraine
    Zoe stands with Ukraine almost 5 years
    But before you that can happen, your post needs to have an actual answer. If OP of the comment doesn't want to post it as an answer, you could do it yourself (just remember attribution if you copy-paste the content - see this if you don't know how)
  • Admin
    Admin over 2 years
    Please add further details to expand on your answer, such as working code or documentation citations.