当我导入 tensorflow 时,它给了我这个错误:
回溯(最近一次调用):文件“C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 58 行,来自 tensorflow.python.pywrap_tensorflow_internal import * 文件“C: \Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“C:\Users\User\Anaconda3\lib\site-packages\tensorflow\ python\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 文件“C:\Users\User\Anaconda3\lib\imp.py”,第 243 行,在load_module return load_dynamic(name, filename, file) File "C:\Users\User\Anaconda3\lib\imp.py", line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: A dynamic link library (DLL) initializationroutine failed.
在处理上述异常的过程中,又发生了一个异常:
回溯(最近一次调用):文件“”,第 1 行,在导入 tensorflow 中作为 tf 文件“C:\Users\User\Anaconda3\lib\site-packages\tensorflow__init__.py”,第 24 行,来自 tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\Users \User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 74 行,在 raise ImportError(msg) ImportError: Traceback (last last call last): File "C:\Users\User\Anaconda3\ lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 58 行,来自 tensorflow.python.pywrap_tensorflow_internal import * 文件“C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件
无法加载本机 TensorFlow 运行时。
FFIVE
相关分类