Tensorflow error : DLL load failed: The specified

2020-02-04 20:02发布

I tried to install tensorflow cpu using pip in my windows8.1 64bit python3.6.0 using pip install tensorflow but it gives me this error:

Traceback (most recent call last):   File "C:\Users\Laitooo
San\Desktop\tf.py", line 1, in <module>
     import tensorflow as tf   File "C:\Users\Laitooo San\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py",
 line 24, in <module>
     from tensorflow.python import *   File "C:\Users\Laitooo San\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\Laitooo
 San\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\Laitooo
 San\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.

I downloaded python36.dll and made sure all other .dll is there and install Microsoft visual c++ 2015

I also uninstalled tensorflow and installed another version several times but without any result.

7条回答
▲ chillily
2楼-- · 2020-02-04 20:56
  • windows 10
    • python 3.6
    • Cuda 9.0
    • cudnn-9.0-windows10-x64-v7.6.3.30
    • tensorflow-gpu == 1.12.0
    • keras == 2.2.4

problem was:

ImportError: DLL load failed: The specified procedure could not be found.

solved with:

pip install protobuf==3.6.0
查看更多
登录 后发表回答