frustrating problem with tensorflow and cuda











up vote
-1
down vote

favorite












I am using windows 10.
I was trying to train neural networks with CUDA as I have a GTX 1050ti.To do so, I
installed Cuda toolkit (cuda 10.0 local.exe)and downloaded cudann64.dll which contains lib,include and bin.I pasted those to the cuda folder in program files.
I used pip install tensorflow-gpu at first ,I was actually following a tutorial from Harrison Kinsley,more known as 'sentdex' in youtube -https://www.youtube.com/watch?v=r7-WPbx8VuY&t=971s .After doing everything,in cmd,I commanded python and then commanded import tensorflow In that tutorial,he was passed,but in my case,nothing had happened,what was happening was >>>import tensorflow >>> 'blank' was coming.Nevertheless,I was able to train a cnn on that moment with cpu.So I was frustrated and then saw another tutorial in youtube:https://www.youtube.com/watch?v=RFC0c3graN0&t=532s and followed him.However,by seeing him I went to this How do I check if keras is using gpu version of tensorflow? stack overflow page and copied this command to see whether tensorflow is enabled gpu or notfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
then it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:pip install --ignore-installed --upgrade tensorflow-gpu
After running that command,it said successfully installed tensorflow and many things which I haven't copied at that moment.If anyone suggests I can rerun that and post you what happened there.But the disaster came then.After that when I commandedfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
it happened





>>> from tensorflow.python.client import device_lib



Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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.






>>> print(device_lib.list_local_devices())



Traceback (most recent call last):
File "", line 1, in
NameError: name 'device_lib' is not defined






and now when I am trying to runimport tensorflow , this occurs




Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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






So please anyone help me.I am just frustrated cause now even I can' train with cpu.Any help will save my life.I would be ever grateful to him.










share|improve this question




















  • 1




    This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
    – roganjosh
    Nov 19 at 15:22










  • I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
    – fun biggun
    Nov 19 at 16:03










  • I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
    – roganjosh
    Nov 19 at 16:08






  • 1




    Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
    – Mad Wombat
    Nov 19 at 17:21










  • thank you very much!!!!!!
    – fun biggun
    Nov 19 at 19:35















up vote
-1
down vote

favorite












I am using windows 10.
I was trying to train neural networks with CUDA as I have a GTX 1050ti.To do so, I
installed Cuda toolkit (cuda 10.0 local.exe)and downloaded cudann64.dll which contains lib,include and bin.I pasted those to the cuda folder in program files.
I used pip install tensorflow-gpu at first ,I was actually following a tutorial from Harrison Kinsley,more known as 'sentdex' in youtube -https://www.youtube.com/watch?v=r7-WPbx8VuY&t=971s .After doing everything,in cmd,I commanded python and then commanded import tensorflow In that tutorial,he was passed,but in my case,nothing had happened,what was happening was >>>import tensorflow >>> 'blank' was coming.Nevertheless,I was able to train a cnn on that moment with cpu.So I was frustrated and then saw another tutorial in youtube:https://www.youtube.com/watch?v=RFC0c3graN0&t=532s and followed him.However,by seeing him I went to this How do I check if keras is using gpu version of tensorflow? stack overflow page and copied this command to see whether tensorflow is enabled gpu or notfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
then it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:pip install --ignore-installed --upgrade tensorflow-gpu
After running that command,it said successfully installed tensorflow and many things which I haven't copied at that moment.If anyone suggests I can rerun that and post you what happened there.But the disaster came then.After that when I commandedfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
it happened





>>> from tensorflow.python.client import device_lib



Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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.






>>> print(device_lib.list_local_devices())



Traceback (most recent call last):
File "", line 1, in
NameError: name 'device_lib' is not defined






and now when I am trying to runimport tensorflow , this occurs




Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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






So please anyone help me.I am just frustrated cause now even I can' train with cpu.Any help will save my life.I would be ever grateful to him.










share|improve this question




















  • 1




    This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
    – roganjosh
    Nov 19 at 15:22










  • I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
    – fun biggun
    Nov 19 at 16:03










  • I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
    – roganjosh
    Nov 19 at 16:08






  • 1




    Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
    – Mad Wombat
    Nov 19 at 17:21










  • thank you very much!!!!!!
    – fun biggun
    Nov 19 at 19:35













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am using windows 10.
I was trying to train neural networks with CUDA as I have a GTX 1050ti.To do so, I
installed Cuda toolkit (cuda 10.0 local.exe)and downloaded cudann64.dll which contains lib,include and bin.I pasted those to the cuda folder in program files.
I used pip install tensorflow-gpu at first ,I was actually following a tutorial from Harrison Kinsley,more known as 'sentdex' in youtube -https://www.youtube.com/watch?v=r7-WPbx8VuY&t=971s .After doing everything,in cmd,I commanded python and then commanded import tensorflow In that tutorial,he was passed,but in my case,nothing had happened,what was happening was >>>import tensorflow >>> 'blank' was coming.Nevertheless,I was able to train a cnn on that moment with cpu.So I was frustrated and then saw another tutorial in youtube:https://www.youtube.com/watch?v=RFC0c3graN0&t=532s and followed him.However,by seeing him I went to this How do I check if keras is using gpu version of tensorflow? stack overflow page and copied this command to see whether tensorflow is enabled gpu or notfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
then it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:pip install --ignore-installed --upgrade tensorflow-gpu
After running that command,it said successfully installed tensorflow and many things which I haven't copied at that moment.If anyone suggests I can rerun that and post you what happened there.But the disaster came then.After that when I commandedfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
it happened





>>> from tensorflow.python.client import device_lib



Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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.






>>> print(device_lib.list_local_devices())



Traceback (most recent call last):
File "", line 1, in
NameError: name 'device_lib' is not defined






and now when I am trying to runimport tensorflow , this occurs




Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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






So please anyone help me.I am just frustrated cause now even I can' train with cpu.Any help will save my life.I would be ever grateful to him.










share|improve this question















I am using windows 10.
I was trying to train neural networks with CUDA as I have a GTX 1050ti.To do so, I
installed Cuda toolkit (cuda 10.0 local.exe)and downloaded cudann64.dll which contains lib,include and bin.I pasted those to the cuda folder in program files.
I used pip install tensorflow-gpu at first ,I was actually following a tutorial from Harrison Kinsley,more known as 'sentdex' in youtube -https://www.youtube.com/watch?v=r7-WPbx8VuY&t=971s .After doing everything,in cmd,I commanded python and then commanded import tensorflow In that tutorial,he was passed,but in my case,nothing had happened,what was happening was >>>import tensorflow >>> 'blank' was coming.Nevertheless,I was able to train a cnn on that moment with cpu.So I was frustrated and then saw another tutorial in youtube:https://www.youtube.com/watch?v=RFC0c3graN0&t=532s and followed him.However,by seeing him I went to this How do I check if keras is using gpu version of tensorflow? stack overflow page and copied this command to see whether tensorflow is enabled gpu or notfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
then it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:pip install --ignore-installed --upgrade tensorflow-gpu
After running that command,it said successfully installed tensorflow and many things which I haven't copied at that moment.If anyone suggests I can rerun that and post you what happened there.But the disaster came then.After that when I commandedfrom tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
it happened





>>> from tensorflow.python.client import device_lib



Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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.






>>> print(device_lib.list_local_devices())



Traceback (most recent call last):
File "", line 1, in
NameError: name 'device_lib' is not defined






and now when I am trying to runimport tensorflow , this occurs




Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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 "", line 1, in
File "C:UsersimaziAnaconda3libsite-packagestensorflow__init__.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersimaziAnaconda3libsite-packagestensorflowpython__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersimaziAnaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersimaziAnaconda3libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersimaziAnaconda3libimp.py", line 343, 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






So please anyone help me.I am just frustrated cause now even I can' train with cpu.Any help will save my life.I would be ever grateful to him.







python tensorflow gpu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 17:13









talonmies

58.9k17126192




58.9k17126192










asked Nov 19 at 15:11









fun biggun

32




32








  • 1




    This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
    – roganjosh
    Nov 19 at 15:22










  • I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
    – fun biggun
    Nov 19 at 16:03










  • I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
    – roganjosh
    Nov 19 at 16:08






  • 1




    Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
    – Mad Wombat
    Nov 19 at 17:21










  • thank you very much!!!!!!
    – fun biggun
    Nov 19 at 19:35














  • 1




    This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
    – roganjosh
    Nov 19 at 15:22










  • I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
    – fun biggun
    Nov 19 at 16:03










  • I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
    – roganjosh
    Nov 19 at 16:08






  • 1




    Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
    – Mad Wombat
    Nov 19 at 17:21










  • thank you very much!!!!!!
    – fun biggun
    Nov 19 at 19:35








1




1




This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
– roganjosh
Nov 19 at 15:22




This is just too much, sorry. Also with multiple links. Can you try boil this down to a more specific issue And with correct formatting?
– roganjosh
Nov 19 at 15:22












I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
– fun biggun
Nov 19 at 16:03




I wanted to explain actual scenario,so I had to put all of those errors .Please don't be sorry.Any help will save my life
– fun biggun
Nov 19 at 16:03












I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
– roganjosh
Nov 19 at 16:08




I'm sorry in terms of telling you that this question is not suitable currently. Background info is rarely relevant (I'm certainly guilty of including too much); please create an MCVE
– roganjosh
Nov 19 at 16:08




1




1




Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
– Mad Wombat
Nov 19 at 17:21




Tensorflow docs seem to indicate that you need CUDA 9, not 10. tensorflow.org/install/gpu
– Mad Wombat
Nov 19 at 17:21












thank you very much!!!!!!
– fun biggun
Nov 19 at 19:35




thank you very much!!!!!!
– fun biggun
Nov 19 at 19:35

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377535%2ffrustrating-problem-with-tensorflow-and-cuda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377535%2ffrustrating-problem-with-tensorflow-and-cuda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Feedback on college project

Futebolista

Albești (Vaslui)