python tensorflow import dll load failed

Mickey Mandy

I installed latest python 3.6.4 x64 version

and then installed tensorflow for cpu-only with pip3

C:\>pip3 install tensorflow

however when I tried to import tensorflow in python

it showed me the error below

I am sure that I have installed Microsoft Visual C++ 2015 Redistributable(x64)

so it wll not be the problem of dll msvcp140.dll lost

it say that "DLL load failed with error code -1073741795"

so what is exactly the problem here

i cannot find any other information about this error code

my os : windows 7 enterprise with service pack 1 / 64 bit / intel core i5 M 540

>>> import tensorflow
Traceback (most recent call last):
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    return importlib.import_module(mname)
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\importlib\__ini
t__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
    return importlib.import_module('_pywrap_tensorflow_internal')
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\importlib\__ini
t__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    return importlib.import_module(mname)
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\importlib\__ini
t__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
    return importlib.import_module('_pywrap_tensorflow_internal')
  File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\importlib\__ini
t__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Coton Chen

I got same problem with tensorflow1.6-CPU on win7 64bit(Intel Core 2 Duo Cpu T6670 2.2GHz)

After I found this, and it solved my problem.

Reference this issue: https://github.com/tensorflow/tensorflow/issues/17386

Re-installed by this tensorflow-1.6.0-cp36-cp36m-win_amd64.whl: https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.6.0/py36/CPU/sse2

Hope this .whl may help you.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

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

From Dev

ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

From Dev

Can't import Orekit - 'DLL load failed'

From Dev

"ImportError: DLL load failed" when importing tensorflow

From Dev

DLL load failed python 3.7

From Dev

import _ssl error,DLL load failed ,Python 37 Anaconda Windows 10

From Dev

DLL load failed : Python modules accessible through Spyder but import fail in cmd

From Dev

Getting the error "DLL load failed: The specified module could not be found." while trying to import tensorflow for Windows in Anaconda using PyCharm

From Dev

Unable to import tensorflow - Failed to load native tensorflow runtime

From Dev

TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8

From Dev

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

From Dev

Python Opencv DLL load failed - Windows 10

From Dev

C++ extension in Python 'DLL load failed'

From Dev

PyQt5 pyuic Import error: DLL load failed

From Java

Import error: DLL load failed in Jupyter notebook but working in .py file

From Java

Can't import cv2; "DLL load failed"

From Dev

Pyinstaller: Import Error: DLL load failed: The specified module could not be found

From

"DLL load failed" when import cv2 (opencv)

From Dev

importError: DLL load failed(import h5py)

From Dev

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

From Java

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

From Dev

DLL load failed when importing TensorFlow with GPU support

From Dev

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

From Dev

Tensorflow: ImportError: DLL load failed: Cannot find module

From Dev

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

From Dev

NUnit failed to load DLL

From Java

"import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

From Dev

import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

From Dev

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

Related Related

  1. 1

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

  2. 2

    ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

  3. 3

    Can't import Orekit - 'DLL load failed'

  4. 4

    "ImportError: DLL load failed" when importing tensorflow

  5. 5

    DLL load failed python 3.7

  6. 6

    import _ssl error,DLL load failed ,Python 37 Anaconda Windows 10

  7. 7

    DLL load failed : Python modules accessible through Spyder but import fail in cmd

  8. 8

    Getting the error "DLL load failed: The specified module could not be found." while trying to import tensorflow for Windows in Anaconda using PyCharm

  9. 9

    Unable to import tensorflow - Failed to load native tensorflow runtime

  10. 10

    TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8

  11. 11

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

  12. 12

    Python Opencv DLL load failed - Windows 10

  13. 13

    C++ extension in Python 'DLL load failed'

  14. 14

    PyQt5 pyuic Import error: DLL load failed

  15. 15

    Import error: DLL load failed in Jupyter notebook but working in .py file

  16. 16

    Can't import cv2; "DLL load failed"

  17. 17

    Pyinstaller: Import Error: DLL load failed: The specified module could not be found

  18. 18

    "DLL load failed" when import cv2 (opencv)

  19. 19

    importError: DLL load failed(import h5py)

  20. 20

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

  21. 21

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

  22. 22

    DLL load failed when importing TensorFlow with GPU support

  23. 23

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

  24. 24

    Tensorflow: ImportError: DLL load failed: Cannot find module

  25. 25

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

  26. 26

    NUnit failed to load DLL

  27. 27

    "import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

  28. 28

    import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

  29. 29

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

HotTag

Archive