简体   繁体   English

尝试安装TensorFlow- GPU ...失败,但出现ImportError:DLL加载失败:找不到指定的模块

[英]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: 这对我有用:

  1. Python 3.6.0 的Python 3.6.0
  2. tensorflow-gpu 1.13.0rc2 张量流-gpu 1.13.0rc2
  3. protobuf 3.6.0 protobuf 3.6.0
  4. CUDA 10.0 Toolkit CUDA 10.0工具包
  5. cuDNN 10.0 cuDNN 10.0

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,libinclude文件夹,并且能够成功导入TensorFlow。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Anaconda Tensorflow- ImportError: DLL 加载失败:找不到指定的模块 - Anaconda Tensorflow- ImportError: DLL load failed: The specified module could not be found Tensorflow:ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow: ImportError: DLL load failed: The specified module could not be found Tensorflow-GPU安装ImportError:DLL加载失败:找不到指定的模块 - Tensorflow-GPU Installation ImportError: DLL load failed: The specified module could not be found Windows 上的 Tensorflow - ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found tensorflow 2.3.1 导入错误:DLL 加载失败:找不到指定的模块 - tensorflow 2.3.1 ImportError: DLL load failed: The specified module could not be found Tensorflow 错误:ImportError: DLL 加载失败:找不到指定的模块 - Tensorflow Error: ImportError: DLL load failed: The specified module could not be found Unable to import tensorflow2.0,(no gpU) ImportError: DLL load failed: 找不到指定的程序 - Unable to import tensorflow2.0,(no gpU) ImportError: DLL load failed: The specified procedure could not be found 导入错误:DLL 加载失败:安装 Nvidia GPU 后找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found after installing Nvidia GPU Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块 - Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found Tensorflow 库导入错误:DLL 加载失败:找不到指定的程序 - Tensorflow library ImportError: DLL load failed: The specified procedure could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM