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条回答
叛逆
2楼-- · 2020-02-04 20:38

its the problem with python=3.6.0

Upgrade to any higher versions of python 3.6

查看更多
走好不送
3楼-- · 2020-02-04 20:42

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
查看更多
一纸荒年 Trace。
4楼-- · 2020-02-04 20:42

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
查看更多
狗以群分
5楼-- · 2020-02-04 20:46

I got this (unhelpful) error after installing on python 3.7. Turns out I had not installed cuDNN, the neural network package. After that, it runs without issue.

查看更多
SAY GOODBYE
6楼-- · 2020-02-04 20:48

Updating from python 3.6.0 to python 3.6.4 fixed this issue for me.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2020-02-04 20:51

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>
查看更多
登录 后发表回答