How to fix 'ImportError: DLL load failed: The specified procedure could not be found.' while importing tensorflow-gpu?

Kream

I cannot import tensorflow-gpu==1.13.1 on python 3.6.0.

What i have already done:

  1. Nvidia's drivers (i have GEFORCE 840M which is cuda supported with compute capability 5.0).

  2. I installed Visual Studio 2017 Professional (did not select any specifications in workload).

  3. I installed CUDA 10.1 (was having issues with Visual studio integration so i disabled it during the installation).

  4. I pasted Cudnn 7.5.0 onto cuda's folders.

  5. Restarted.

  6. Pip installed tensorflow-gpu==1.13.1 on python 3.6.0.

  7. but then i cannot import tensorflow at all it shows the error below.

>>> import tensorflow as tf
Traceback (most recent call last):
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\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\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\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\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

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

Goal: Obviously being able to import tensorflow and to import keras from the tensorflow library.

grizzly

In my case this was an issue with detecting the correct CUDA Toolkit/cuDNN version with tensorflow-gpu==1.13.1.

After spending 2 hours on this I installed CUDA Toolkit 10.0 and set TF_CUDA_VERSION environment variable explicitly to 10 in the user env settings (Windows 10).

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 Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

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

From Dev

ImportError: DLL load failed: The specified procedure could not be found. (import sklearn)

From Dev

ImportError: DLL load failed: The specified module could not be found. Tensorflow Chatbot

From Dev

How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

From Dev

lxml installed with conda: "ImportError: DLL load failed: The specified procedure could not be found"

From Dev

" ImportError: DLL load failed: The specified procedure could not be found"- while Digit Recognition using CNN in Python using Keras

From Dev

DLL load failed: The specified module could not be found while importing scipy

From Dev

Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

From Dev

cx_Freeze ImportError: DLL load failed failed while importing _ctypes: The specified module could not be found

From Dev

Big Query - Local machine - ImportError: DLL load failed: The specified procedure could not be found

From Dev

ImportError: DLL load failed while importing pyexpat: The specified module could not be found

From Dev

pyodbc ImportError: DLL load failed: The specified module could > not be found

From Dev

Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

From Dev

DLL load failed while importing ft2font: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified procedure could not be found. (thinkdsp and thinkplot)

From Dev

ImportError: DLL load failed while importing _psycopg: The specified module could not be found

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Dev

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

From Dev

ElastAlert ImportError: DLL load failed: The specified procedure could not be found

From Dev

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

From Dev

(ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

From Dev

DLL load failed while importing aggregations: The specified module could not be found pyhton pandas excel files merging

From Dev

Shiboken2 ... ImportError: DLL load failed: The specified procedure could not be found

From Dev

import QCustomPlot2 ImportError: DLL load failed: The specified procedure could not be found

From Dev

ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

Related Related

  1. 1

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

  2. 2

    ImportError: DLL load failed: The specified module could not be found

  3. 3

    ImportError: DLL load failed: The specified module could not be found

  4. 4

    ImportError: DLL load failed: The specified module could not be found for numpy

  5. 5

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

  6. 6

    ImportError: DLL load failed: The specified procedure could not be found. (import sklearn)

  7. 7

    ImportError: DLL load failed: The specified module could not be found. Tensorflow Chatbot

  8. 8

    How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

  9. 9

    lxml installed with conda: "ImportError: DLL load failed: The specified procedure could not be found"

  10. 10

    " ImportError: DLL load failed: The specified procedure could not be found"- while Digit Recognition using CNN in Python using Keras

  11. 11

    DLL load failed: The specified module could not be found while importing scipy

  12. 12

    Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

  13. 13

    cx_Freeze ImportError: DLL load failed failed while importing _ctypes: The specified module could not be found

  14. 14

    Big Query - Local machine - ImportError: DLL load failed: The specified procedure could not be found

  15. 15

    ImportError: DLL load failed while importing pyexpat: The specified module could not be found

  16. 16

    pyodbc ImportError: DLL load failed: The specified module could > not be found

  17. 17

    Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

  18. 18

    DLL load failed while importing ft2font: The specified module could not be found

  19. 19

    ImportError: DLL load failed: The specified procedure could not be found. (thinkdsp and thinkplot)

  20. 20

    ImportError: DLL load failed while importing _psycopg: The specified module could not be found

  21. 21

    Python: ImportError: DLL load failed: The specified module could not be found

  22. 22

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

  23. 23

    ElastAlert ImportError: DLL load failed: The specified procedure could not be found

  24. 24

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

  25. 25

    (ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

  26. 26

    DLL load failed while importing aggregations: The specified module could not be found pyhton pandas excel files merging

  27. 27

    Shiboken2 ... ImportError: DLL load failed: The specified procedure could not be found

  28. 28

    import QCustomPlot2 ImportError: DLL load failed: The specified procedure could not be found

  29. 29

    ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

HotTag

Archive