Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Anaconda 3.6.6中的tensorflow gpu_Python_Tensorflow_Anaconda - Fatal编程技术网

Python Anaconda 3.6.6中的tensorflow gpu

Python Anaconda 3.6.6中的tensorflow gpu,python,tensorflow,anaconda,Python,Tensorflow,Anaconda,在Anaconda提示符中运行“import tensorflow as tf”时堆栈跟踪: import tensorflow as tf Traceback (most recent call last): File "<ipython-input-1-64156d691fe5>", line 1, in <module> import tensorflow as tf File "C:\ProgramData\Anaconda3\lib\site

在Anaconda提示符中运行“import tensorflow as tf”时堆栈跟踪:

import tensorflow as tf
Traceback (most recent call last):

  File "<ipython-input-1-64156d691fe5>", line 1, in <module>
    import tensorflow as tf

  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 22, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import

  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow

  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)

ImportError: Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\ProgramData\Anaconda3\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/install_sources#common_installation_problems

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.
将tensorflow导入为tf
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
导入tensorflow作为tf
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\ \uuuu init\uuuuu.py”,第22行,在
从tensorflow.python导入pywrapu tensorflow 35; pylint:disable=未使用的导入
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\python\\uuuu init\uuuu.py”,第49行,在
从tensorflow.python导入pywrap\u tensorflow
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\python\pywrap\u tensorflow.py”,第74行,在
提高效率(msg)
ImportError:回溯(最近一次呼叫上次):
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\python\pywrap\u tensorflow.py”,第58行,在
从tensorflow.python.pywrap\u tensorflow\u内部导入*
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\python\pywrap\u tensorflow\u internal.py”,第28行,在
_pywrap\u tensorflow\u internal=swig\u import\u helper()
文件“C:\ProgramData\Anaconda3\lib\site packages\tensorflow\python\pywrap\u tensorflow\u internal.py”,第24行,在swig\u import\u helper中
_mod=imp.load_模块(“pywrap_tensorflow_internal”,fp,路径名,描述)
文件“C:\ProgramData\Anaconda3\lib\imp.py”,第243行,在load_模块中
返回加载动态(名称、文件名、文件)
文件“C:\ProgramData\Anaconda3\lib\imp.py”,第343行,在load\u dynamic中
返回负载(规格)
ImportError:DLL加载失败:找不到指定的模块。
未能加载本机TensorFlow运行时。
看见https://www.tensorflow.org/install/install_sources#common_installation_problems
因为一些常见的原因和解决方案。请求帮助时,请在此错误消息上方包含整个堆栈跟踪。