【发布时间】:2018-11-29 20:31:22
【问题描述】:
我正在尝试根据以下指南在 Windows 10 上安装支持 GPU 的 Tensorflow:https://nitishmutha.github.io/tensorflow/2017/01/22/TensorFlow-with-gpu-for-windows.html
但是,我在 Conda Python 3.5.2 中导入 tensorflow 时出现以下错误:
如何修复这个 dll-not-found 错误? 'pip install tensorflow-gpu' 没有给出任何错误。
文件“”,第 666 行,在 _load_unlocked
文件“”,第 577 行,在 module_from_spec
文件“”,第 906 行,在 create_module
文件“”,第 222 行,在 _call_with_frames_removed
ImportError:DLL 加载失败:找不到指定的模块。在处理上述异常的过程中,又发生了一个异常:
回溯(最近一次通话最后一次):
文件“C:\ProgramData\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 41 行, 从 tensorflow.python.pywrap_tensorflow_internal 导入 *
文件“C:\ProgramData\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 21 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“C:\ProgramData\Anaconda3\envs\ tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", 第 20 行,在 swig_import_helper
返回 importlib.import_module('_pywrap_tensorflow_internal')
文件“C:\ProgramData\Anaconda3\envs\tensorflow-gpu\lib\importlib__init__.py”,第 126 行,在 import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError:没有名为“_pywrap_tensorflow_internal”的模块无法加载原生 TensorFlow 运行时。
见https://www.tensorflow.org/install/install_sources#common_installation_problems
出于一些常见的原因和解决方案。包括整个堆栈跟踪
寻求帮助时出现此错误消息。
【问题讨论】:
标签: python tensorflow gpu