Why can I not use tensorflow-gpu even after I have succeed in installing cuda 9.2? The 2019 Stack Overflow Developer Survey Results Are InImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory (Windows)python Tensorflow ImportErrorCan anyone help me about what's wrong with importing tensorflow by the below error?why cannot install tensorflow-gpu on Ubuntu16.04 cuda8.0 systemImporting tensorflow not working when upgradedCannot import Tensorflow v1.12import tensorflow is failing with ImportError: DLL load failed: The specified module could not be foundImportError: DLL load failed: The specified module could not be found … I found this error while installing tensorflow gpuwhy i am getting error for “import tensorflow” in ubuntu even after installing everything for running tensorflow in gpuError after installing pip tensorflow-gpu with cuda 10
Why can Shazam do this?
How to reverse every other sublist of a list?
Inline version of a function returns different value then non-inline version
Extreme, unacceptable situation and I can't attend work tomorrow morning
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Does light intensity oscillate really fast since it is a wave?
On the insanity of kings as an argument against Monarchy
Can't find the latex code for the ⍎ (down tack jot) symbol
Why Did Howard Stark Use All The Vibranium They Had On A Prototype Shield?
It's possible to achieve negative score?
Limit the amount of RAM Mathematica may access?
Can we apply L'Hospital's rule where the derivative is not continuous?
Where does the "burst of radiance" from Holy Weapon originate?
Any good smartcontract for "business calendar" oracles?
Why is Grand Jury testimony secret?
What is the use of option -o in the useradd command?
Patience, young "Padovan"
A poker game description that does not feel gimmicky
Why could you hear an Amstrad CPC working?
"What time...?" or "At what time...?" - what is more grammatically correct?
Should I write numbers in words or as numerals when there are multiple next to each other?
Inversion Puzzle
Why is it "Tumoren" and not "Tumore"?
Why can I not use tensorflow-gpu even after I have succeed in installing cuda 9.2?
The 2019 Stack Overflow Developer Survey Results Are InImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory (Windows)python Tensorflow ImportErrorCan anyone help me about what's wrong with importing tensorflow by the below error?why cannot install tensorflow-gpu on Ubuntu16.04 cuda8.0 systemImporting tensorflow not working when upgradedCannot import Tensorflow v1.12import tensorflow is failing with ImportError: DLL load failed: The specified module could not be foundImportError: DLL load failed: The specified module could not be found … I found this error while installing tensorflow gpuwhy i am getting error for “import tensorflow” in ubuntu even after installing everything for running tensorflow in gpuError after installing pip tensorflow-gpu with cuda 10
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have followed many tutorials to install the cuda + tensorflow-gpu to accelerate the machine learning calculations, but failed.
I have installed the VS2017 like this

After that I install the CUDA 9.2 since my gpu shows that it supports the CUDA9.2 like below:
.
It seems that everything is ok when I install CUDA, I also copy the cudnn to the CUDA folder and add the folder to the systems path on windows 10, the command nvcc and devicequery.exe can both execute successfully like this:





Does it mean I succeed installing cuda on windows 10?
However, when I use tensorflow-gpu with Python 3.5 it show that error
import tensorflow as tf
Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
I find all the method I can find to fix this problem but it is no help. I can import tensorflow when I use tensorflow rather than tensorflow-gpu.
tensorflow
add a comment |
I have followed many tutorials to install the cuda + tensorflow-gpu to accelerate the machine learning calculations, but failed.
I have installed the VS2017 like this

After that I install the CUDA 9.2 since my gpu shows that it supports the CUDA9.2 like below:
.
It seems that everything is ok when I install CUDA, I also copy the cudnn to the CUDA folder and add the folder to the systems path on windows 10, the command nvcc and devicequery.exe can both execute successfully like this:





Does it mean I succeed installing cuda on windows 10?
However, when I use tensorflow-gpu with Python 3.5 it show that error
import tensorflow as tf
Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
I find all the method I can find to fix this problem but it is no help. I can import tensorflow when I use tensorflow rather than tensorflow-gpu.
tensorflow
add a comment |
I have followed many tutorials to install the cuda + tensorflow-gpu to accelerate the machine learning calculations, but failed.
I have installed the VS2017 like this

After that I install the CUDA 9.2 since my gpu shows that it supports the CUDA9.2 like below:
.
It seems that everything is ok when I install CUDA, I also copy the cudnn to the CUDA folder and add the folder to the systems path on windows 10, the command nvcc and devicequery.exe can both execute successfully like this:





Does it mean I succeed installing cuda on windows 10?
However, when I use tensorflow-gpu with Python 3.5 it show that error
import tensorflow as tf
Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
I find all the method I can find to fix this problem but it is no help. I can import tensorflow when I use tensorflow rather than tensorflow-gpu.
tensorflow
I have followed many tutorials to install the cuda + tensorflow-gpu to accelerate the machine learning calculations, but failed.
I have installed the VS2017 like this

After that I install the CUDA 9.2 since my gpu shows that it supports the CUDA9.2 like below:
.
It seems that everything is ok when I install CUDA, I also copy the cudnn to the CUDA folder and add the folder to the systems path on windows 10, the command nvcc and devicequery.exe can both execute successfully like this:





Does it mean I succeed installing cuda on windows 10?
However, when I use tensorflow-gpu with Python 3.5 it show that error
import tensorflow as tf
Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:UsersRobbonAppDataLocalProgramsPythonPython35libimp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
I find all the method I can find to fix this problem but it is no help. I can import tensorflow when I use tensorflow rather than tensorflow-gpu.
tensorflow
tensorflow
edited Mar 10 at 17:01
halfer
14.8k759116
14.8k759116
asked Mar 8 at 8:32
李瑞斌李瑞斌
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Please check your tensorflow-gpu version and see if it follows the cuDNN and CUDA version listed at Tested build configurations.
The official install guide is recommended.
Install TensorFlow with pip
And my first successful install followed this guide.
Thanks to Phil Ferriere
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
add a comment |
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',
autoActivateHeartbeat: false,
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
);
);
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%2f55059381%2fwhy-can-i-not-use-tensorflow-gpu-even-after-i-have-succeed-in-installing-cuda-9%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please check your tensorflow-gpu version and see if it follows the cuDNN and CUDA version listed at Tested build configurations.
The official install guide is recommended.
Install TensorFlow with pip
And my first successful install followed this guide.
Thanks to Phil Ferriere
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
add a comment |
Please check your tensorflow-gpu version and see if it follows the cuDNN and CUDA version listed at Tested build configurations.
The official install guide is recommended.
Install TensorFlow with pip
And my first successful install followed this guide.
Thanks to Phil Ferriere
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
add a comment |
Please check your tensorflow-gpu version and see if it follows the cuDNN and CUDA version listed at Tested build configurations.
The official install guide is recommended.
Install TensorFlow with pip
And my first successful install followed this guide.
Thanks to Phil Ferriere
Please check your tensorflow-gpu version and see if it follows the cuDNN and CUDA version listed at Tested build configurations.
The official install guide is recommended.
Install TensorFlow with pip
And my first successful install followed this guide.
Thanks to Phil Ferriere
edited Mar 11 at 1:51
answered Mar 11 at 1:38
Harry HungHarry Hung
915
915
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
add a comment |
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
1
1
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
Thanks, I have solved this problem by retrying the installing process with VStudio 2015, it seems that python 3.5 do not support CUDA 9.2 ?? I can succeed with CUDA 9.0, but fail when i use CUDA 9.2 with the comment "lack of CUDA 9.0 runtime lib" or some comments like this..
– 李瑞斌
Mar 11 at 8:31
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f55059381%2fwhy-can-i-not-use-tensorflow-gpu-even-after-i-have-succeed-in-installing-cuda-9%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