ageitgey / ageitgey/face_recognition

DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.

Open
#1,237 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Description

  • face_recognition version: 1.3.0
  • Python version: 3.7
  • Operating System: Windows 10
Description

Trying to implement face_recognition library and when i isntalled it from pip there i am getting this error when i try to run my script

What I Did

I imported dlib from conda and face_Recognition through pip.
When i run my script i am getting this error: DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.

This is the whole stacktrace

Traceback (most recent call last):
  File "C:/Users/***/PycharmProjects/pythonProject/CameraLib.py", line 4, in <module>
    import face_recognition
  File "C:\Users\***\anaconda3\envs\pythonProject\lib\site-packages\face_recognition\__init__.py", line 7, in <module>
    from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
  File "C:\Users\***\anaconda3\envs\pythonProject\lib\site-packages\face_recognition\api.py", line 4, in <module>
    import dlib
  File "C:\Users\***\anaconda3\envs\pythonProject\lib\site-packages\dlib\__init__.py", line 19, in <module>
    from _dlib_pybind11 import *
ImportError: DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The traceback only identifies the installed face_recognition and dlib entry points, not a repository file or test. Start by reproducing the import failure on Windows 10 with Python 3.7, conda dlib, and pip-installed face_recognition; done requires a confirmed resolution for this environment or a documented project-side fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.