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_libthen it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:
print(device_lib.list_local_devices())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_libit happened
print(device_lib.list_local_devices())
>>> 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
add a comment |
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_libthen it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:
print(device_lib.list_local_devices())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_libit happened
print(device_lib.list_local_devices())
>>> 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
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
add a comment |
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_libthen it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:
print(device_lib.list_local_devices())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_libit happened
print(device_lib.list_local_devices())
>>> 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
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_libthen it showed cpu version.But till then it was okay.but after sometime ,by seeing him, I commanded this to whatsoever install tensorflow gpu:
print(device_lib.list_local_devices())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_libit happened
print(device_lib.list_local_devices())
>>> 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
python tensorflow gpu
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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