[英]Trying to install TensorFlow- GPU…failed with ImportError: DLL load failed: The specified module could not be found
I am trying to install TensorFlow GPU 1.12.0 (using pip), I am using cuda 9.0, windows 10, python 3.6, nvidia GTX 1080. I am stuck with ImportError. 我正在尝试安装TensorFlow GPU 1.12.0(使用pip),我正在使用CUDA 9.0,Windows 10,Python 3.6,Nvidia GTX 1080.我陷入了ImportError问题。 Can anyone please guide me? 谁能指导我? Thanks! 谢谢!
ImportError: Traceback (most recent call last):
File "C:\Users\station\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\station\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\station\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\station\venv\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\station\venv\lib\imp.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.
hey bro try to install tensorflow on his version 1.5 嗨,兄弟尝试在他的1.5版上安装tensorflow
pip install --upgrade --ignore-installed tensorflow-gpu==1.5 on his version is compatible pip install --upgrade --ignore在他的版本上安装的tensorflow-gpu == 1.5是兼容的
Seems like some issue is there with tensorflow 1.12.0 +Python 3.6.0 + win10 tensorflow 1.12.0 + Python 3.6.0 + win10似乎存在一些问题
Working fine with conda tensorflow. 使用conda tensorflow可以正常工作。
below steps worked for me for pip tensorflow. 以下步骤对我来说是pip tensorflow工作。
uninstall tensorflow replace your python version with 3.6.1 install latest version of tensorflow(1.13.0) 卸载tensorflow用3.6.1替换python版本安装最新版本的tensorflow(1.13.0)
For installing Tensorflow follow below link:- https://www.tensorflow.org/install/pip 对于安装Tensorflow按照以下链接: - https://www.tensorflow.org/install/pip
Here's what worked for me: 这对我有用:
Thanks all for sharing your responses. 感谢大家分享您的回复。 I was able to fix the issue by adding correct cuda path to my environment variable. 通过将正确的cuda路径添加到我的环境变量中,我能够解决此问题。 Specifically, I added cuda, lib and include folders to environment and was able to successfully import TensorFlow. 具体来说,我在环境中添加了cuda,lib和include文件夹,并且能够成功导入TensorFlow。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.