Tensorflow : DLL load failed: A dynamic link library (DLL) initialization routine failed

Mehdi Aghighi

I am setting up a Captcha solver with tensorflow object-detection and i get this error

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

It is on a Windows Server I got Python 3.7.3 And Tensorflow 1.14.0 and i am not using the tensorflow-gpu ! but i already get this error

import tensorflow as tf

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.


Failed to load the native TensorFlow runtime.

I did Everything And Installed All Of required libraries.

i saw all other questions with this theme in stackoverflow but all of them was solving for tensorflow-gpu.

mlneural03

TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. .
Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.

Apparently, your CPU model does not support AVX instruction sets. You can still use TensorFlow with the alternatives given below:

  • Try Google Colab to use TensorFlow.
    The easiest way to use TF will be to switch to google colab. You get pre-installed latest stable TF version. Also you can use pip install to install any other preferred TF version.
    It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task. All you need is a good internet connection and you are all set.

  • Try to build TF from sources by changing CPU optimization flags.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Tensorflow error : DLL load failed: The specified procedure could not be found

From Javascript

Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

From

Calling Golang from Java using JNI on Windows leads to "A dynamic link library (DLL) initialization routine failed"

From Dev

NUnit failed to load DLL

From Dev

aspnetcore.dll failed to load

From Dev

How to resolve "ImportError: DLL load failed:" on Python?

From Dev

Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

From Dev

python tensorflow import dll load failed

From Dev

PyInstallerImportError: Failed to load dynlib/dll?

From Dev

FMUException: Error loading the binary. Could not load the DLL: A dynamic link library (DLL) initialization routine failed

From Dev

Electron running SQLlite 3 on Windows - A dynamic link library (DLL) initialization routine failed

From Dev

Tensorflow: ImportError: DLL load failed: Cannot find module

From Python

Cannot import from pywinauto: ImportError: DLL load failed while importing win32ui: A dynamic link library (DLL) initialization routine failed

From Dev

Error while importing Tensorflow. A dynamic link library (DLL) initialization routine failed

From Dev

The Module "aspnetcorev2.dll" failed to load

From Dev

DLL load failed python 3.7

From Dev

DLL load failed when importing TensorFlow with GPU support

From Dev

Tensorflow (1.13.1) Exception when import: DLL load failed (Windows 10)

From Dev

sklearn. ImportError: DLL load failed

From Dev

"ImportError: DLL load failed" when importing tensorflow

From Dev

Trying to use win32ui with pywin32 gives: A dynamic link library (DLL) initialization routine failed

From Dev

Failed to Load DLL After Windows 10 Upgrade

From Dev

Can't import Orekit - 'DLL load failed'

From Dev

Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795

From Dev

Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

From Dev

C#: A dynamic link library (DLL) initialization routine failed

From Dev

Anaconda issue, DLL load failed

From Dev

How to fix Java 15 JNI "UnsatisfiedLinkError: A dynamic link library (DLL) initialization routine failed"

From Dev

Sudden "Failed to load hostfxr.dll"

Related Related

  1. 1

    Tensorflow error : DLL load failed: The specified procedure could not be found

  2. 2

    Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

  3. 3

    Calling Golang from Java using JNI on Windows leads to "A dynamic link library (DLL) initialization routine failed"

  4. 4

    NUnit failed to load DLL

  5. 5

    aspnetcore.dll failed to load

  6. 6

    How to resolve "ImportError: DLL load failed:" on Python?

  7. 7

    Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

  8. 8

    python tensorflow import dll load failed

  9. 9

    PyInstallerImportError: Failed to load dynlib/dll?

  10. 10

    FMUException: Error loading the binary. Could not load the DLL: A dynamic link library (DLL) initialization routine failed

  11. 11

    Electron running SQLlite 3 on Windows - A dynamic link library (DLL) initialization routine failed

  12. 12

    Tensorflow: ImportError: DLL load failed: Cannot find module

  13. 13

    Cannot import from pywinauto: ImportError: DLL load failed while importing win32ui: A dynamic link library (DLL) initialization routine failed

  14. 14

    Error while importing Tensorflow. A dynamic link library (DLL) initialization routine failed

  15. 15

    The Module "aspnetcorev2.dll" failed to load

  16. 16

    DLL load failed python 3.7

  17. 17

    DLL load failed when importing TensorFlow with GPU support

  18. 18

    Tensorflow (1.13.1) Exception when import: DLL load failed (Windows 10)

  19. 19

    sklearn. ImportError: DLL load failed

  20. 20

    "ImportError: DLL load failed" when importing tensorflow

  21. 21

    Trying to use win32ui with pywin32 gives: A dynamic link library (DLL) initialization routine failed

  22. 22

    Failed to Load DLL After Windows 10 Upgrade

  23. 23

    Can't import Orekit - 'DLL load failed'

  24. 24

    Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795

  25. 25

    Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

  26. 26

    C#: A dynamic link library (DLL) initialization routine failed

  27. 27

    Anaconda issue, DLL load failed

  28. 28

    How to fix Java 15 JNI "UnsatisfiedLinkError: A dynamic link library (DLL) initialization routine failed"

  29. 29

    Sudden "Failed to load hostfxr.dll"

HotTag

Archive