ageitgey / ageitgey/face_recognition
DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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