我正在尝试安装Tensorflow GPU 1.12.0(使用PIP),我使用的是CUDA 9.0,Windows 10,Python 3.6,Nvidia GTX1080。我被Infromerterror粘住了。有人可以指导我吗?谢谢!
ImportError: Traceback (most recent call last):
File "C:Usersstationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:Usersstationvenvlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:Usersstationvenvlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:Usersstationvenvlibimp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:Usersstationvenvlibimp.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.
嘿兄弟尝试在其版本1.5
上安装TensorFlowpip安装 - 升级-Ingignore安装的TensorFlow-gpu == 1.5在他的版本上兼容
似乎有一些问题,Tensorflow 1.12.0 Python 3.6.0 Win10
与conda tensorflow一起工作。
下面的步骤为我为pip tensorflow工作。
卸载TensorFlow用3.6.1安装最新版本的TensorFlow(1.13.0)
替换您的Python版本用于安装TensorFlow以下链接:-https://www.tensorflow.org/install/pip
这是对我有用的东西:
- Python 3.6.0
- TensorFlow-GPU 1.13.0RC2
- Protobuf 3.6.0
- cuda 10.0工具包
- cudnn 10.0
感谢大家分享您的回复。我能够通过在环境变量中添加正确的CUDA路径来解决问题。具体来说,我添加了 cuda,lib 和 include 文件夹,并能够成功导入TensorFlow。