[Python] face_recognition module not found

Discussão em 'Python' iniciado por Stack, Maio 12, 2025.

  1. Stack

    Stack Membro Participativo

    I need help in using face_recognition. In Windows 11, I am using Python 3.13.3. I am repeatedly getting "Please install 'face_recognition_models'... error when trying to use fact_recognition. Error showing Please install face_recognition_models with this command before using face_recognition: pip install git+https://github.com/ageitgey/face_recognition_models

    I have face_recognition as well as face_recognition_models installed.

    C:\Users\@@@@@>pip list
    Package Version
    ----------------------- -------
    click 8.2.0
    colorama 0.4.6
    dlib 19.24.8
    face-recognition 1.3.0
    face_recognition_models 0.3.0
    numpy 2.2.5
    pillow 11.2.1
    pip 25.0.1


    These are installed in the appropriate folders:

    C:\Users\@@@@@>pip show face_recognition
    Name: face-recognition
    Version: 1.3.0
    Summary: Recognize faces from Python or from the command line
    Home-page: https://github.com/ageitgey/face_recognition
    Author: Adam Geitgey
    Author-email: ageitgey@gmail.com
    License: MIT license
    Location: C:\Users\@@@@@\AppData\Local\Programs\Python\Python313\Lib\site-packages
    Requires: Click, dlib, face-recognition-models, numpy, Pillow
    Required-by:

    C:\Users\@@@@@>pip show face_recognition_models
    Name: face_recognition_models
    Version: 0.3.0
    Summary: Models used by the face_recognition package.
    Home-page: https://github.com/ageitgey/face_recognition_models
    Author: Adam Geitgey
    Author-email: ageitgey@gmail.com
    License: MIT license
    Location: C:\Users\@@@@@\AppData\Local\Programs\Python\Python313\Lib\site-packages
    Requires:
    Required-by: face-recognition

    C:\Users\@@@@@>python
    Python 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> print (sys.executable)
    C:\Users\@@@@@\AppData\Local\Programs\Python\Python313\python.exe


    I have unintalled Python and reinstalled it fresh. I have tried to append the path using sys.append. I have updated the system variables for path. None of these seemed to have any effect on the error.

    Continue reading...

Compartilhe esta Página