windows 安装 tensorflow 时出现DLL not found的错误

是因为在装python3的时候没有勾选Download debug binaries (requires VS 2015 or later ),报错:

Traceback (most recent call last):
  File "C:\Users\mark\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 19, in swig_import_helper
    return importlib.import_module(mname)
  File "C:\Users\mark\AppData\Local\Programs\Python\Python35\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 906, in create_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

解决方法: 
Install Microsoft Visual C++ 2015 Redistributable Update 3 x64.

在这之后进入到python3的安装程序,选择repair模式将Download debug binaries (requires VS 2015 or later )选上后安装

猜你喜欢

转载自blog.csdn.net/killwho/article/details/78270301
今日推荐