Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow error : DLL load failed: The specified procedure could not be found

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.

like image 622
Killua San Avatar asked Aug 30 '18 08:08

Killua San


4 Answers

I had this error as well, and was able to resolve it by downgrading protobuf from 3.6.1 to 3.6.0:

pip install protobuf==3.6.0
like image 70
vdwees Avatar answered Nov 17 '22 05:11

vdwees


  • 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
like image 35
Deli Horváth Avatar answered Nov 17 '22 06:11

Deli Horváth


There is a similar issue on Github:

Tensorflow issue

Problem should be resolved if you install the wheel file provided in one of the answers. You can find the wheel file here.

Wheel file

You can install the wheel file with pip. First change the current directory to install location. Then,

pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl
like image 7
Koray Beyaz Avatar answered Nov 17 '22 06:11

Koray Beyaz


All official tensorflow binaries since 1.6 were made with AVX, rendering older CPUs unsupported. In order to install recent tensorflow versions on an older CPU you can simply install tensorflow from a non-avx built wheel ( you can find some here)

 pip install <path to the downloaded .whl file>
like image 2
Daniel Braun Avatar answered Nov 17 '22 05:11

Daniel Braun