ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.85k stars 13.43k forks source link

import dlib ImportError: DLL load failed #846

Open ErfolgreichCharismatisch opened 5 years ago

ErfolgreichCharismatisch commented 5 years ago

Description

When trying to run find_faces_in_batches.py I get

File "find_faces_in_batches.py", line 1, in <module> import face_recognition File "E:\Anaconda\envs\ge\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 "E:\Anaconda\envs\ge\lib\site-packages\face_recognition\api.py", line 4, in <module> import dlib ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

What I Did

I installed the current dlib, DLL load failed, uninstalled, installed dlib 19.15.0, DLL load failed, uninstalled, installed dlib 19.18.0, DLL load failed, uninstalled.

At first I installed it using pip install face-recognition using CMake version: 3.14.4.

I wonder which dll they are talking about.
NatholBMX commented 5 years ago

This is a pretty old version of dlub but it seems to be working for me on differen Windows 10 machines: https://files.pythonhosted.org/packages/0e/ce/f8a3cff33ac03a8219768f0694c5d703c8e037e6aba2e865f9bae22ed63c/dlib-19.8.1-cp36-cp36m-win_amd64.whl#sha256=794994fa2c54e7776659fddb148363a5556468a6d5d46be8dad311722d54bfcf

YubinXie commented 5 years ago

FYI The package installs the following version for me : Successfully installed Click-7.0 dlib-19.17.0 face-recognition-1.2.3

PS: The installation got error on Dlib side until I installed/update cmake.