无法加载DLL和本机Tensorflow运行时

时间:2020-04-21 08:24:08

标签: tensorflow tensorflow2.0

我使用tensorflow来检测对象。它在google服务器实例中工作正常,但无法在我的本地计算机上运行。

操作系统: windows 10

Tensorflow = 2.1.0

通过 pip

安装

甚至下载了 msvcr71.dll msvcp71.dll 并复制到system32和SysWOW64,但仍然出现相同的错误。

错误日志:

ImportError: Traceback (most recent call last):
  File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Program Files\Python36\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Program Files\Python36\lib\imp.py", line 342, 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

0 个答案:

没有答案