Tensorflow ImportError:DLL加载失败

时间:2019-08-15 01:32:46

标签: python tensorflow

我刚刚使用pip在计算机上安装了Tensorflow,这很成功(Win10)。当我尝试在代码中导入Tensorflow时,会显示以下错误消息。

尝试根据其他响应恢复为tensorflow v1.5。

Python代码:

import tensorflow

错误:

  File "code-basics.py", line 1, in <module>
    import tensorflow
  File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

0 个答案:

没有答案