在Anaconda Windows 10 64位中导入Tensorflow GPU版本时出现问题

时间:2018-10-02 04:42:09

标签: tensorflow windows-10 anaconda cudnn

    >>> import tensorflow
Traceback (most recent call last):
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\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\farha\Anaconda3\envs\anaconda_env\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\__init__.py", line 22, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\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\farha\Anaconda3\envs\anaconda_env\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\farha\Anaconda3\envs\anaconda_env\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.

请参见https://www.tensorflow.org/install/install_sources#common_installation_problems

出于某些常见原因和解决方案。包括整个堆栈跟踪 寻求帮助时,此错误消息上方。

  
    

>

  

我安装了Microsoft Visual C ++ Redistributable 2015 Update 3及其构建工具。安装了CUDA 8.0和cudnn6。但是我仍然面临这个问题。 尽可能多地寻求帮助...谢谢!

0 个答案:

没有答案