0

After installing dlib in anaconda in a unique and newly created environment when I import it using python like

python import dlib it returns an error like shown

Traceback (most recent call last): File "", line 1, in File "F:\Anaconda3\envs\py36dlib\lib\site-packages\dlib_init_.py", line 19, in from _dlib_pybind11 import * ImportError: DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.

import dlib Traceback (most recent call last): File "", line 1, in File "F:\Anaconda3\envs\py36dlib\lib\site-packages\dlib_init_.py", line 19, in from _dlib_pybind11 import * ImportError: DLL load failed while importing _dlib_pybind11: A dynamic link library (DLL) initialization routine failed.

  • You should probably provide some context. – André Reichelt Aug 25 '20 at 13:18
  • Alright, Andre Reichelt, so I am working on a face recognition system using machine learning and I need dlib for that. I made a new environment in anaconda just for dlib then I installed dlib in that environment and it was installed successfully without any error. Now to make sure it was correctly installed I used python and imported dlib at that time it showed the error shown above. I have tried downgrading dlib to 19.19 version but that also doesn't work and shows same error. – Himanshu Narula Aug 26 '20 at 06:26
  • The error is >>> import dlib Traceback (most recent call last): File "", line 1, in ImportError: DLL load failed while importing dlib: A dynamic link library (DLL) initialization routine failed. – Himanshu Narula Aug 26 '20 at 06:28
  • Hi And how did You resolve this problem? – Vasyl Kolomiets Mar 28 '21 at 12:32

1 Answers1

0

I have found solution for this it might be that your cpu doesnt support AVX so I install tensorflow from this custommade repository found on github link is here

I selected 1.12.0 for py 37 in that folder select py36 folder and cpu folder and download the file within sse2

cpu which doesn support download sse2 whl

Revisto
  • 1,211
  • 7
  • 11
  • 1
    Hi, Revisto I have found that the avx supported cpu were introduced in 2011 and my cpu was introduced in 2014. So I don't think that is the problem. – Himanshu Narula Aug 26 '20 at 05:57