Python Tensorflow 错误:DLL 加载失败:找不到指定的程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52092810/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tensorflow error : DLL load failed: The specified procedure could not be found
提问by Killua San
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:
我尝试在我的 windows8.1 64 位 python3.6.0 中使用 pip 安装 tensorflow cpu,pip install tensorflow
但它给了我这个错误:
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
我下载了 python36.dll 并确保所有其他 .dll 都在那里并安装 Microsoft Visual C++ 2015
I also uninstalled tensorflow and installed another version several times but without any result.
我还卸载了 tensorflow 并多次安装了另一个版本,但没有任何结果。
采纳答案by Koray Beyaz
There is a similar issue on Github:
Github上也有类似的问题:
Problem should be resolved if you install the wheel file provided in one of the answers. You can find the wheel file here.
如果您安装其中一个答案中提供的轮文件,问题应该可以解决。您可以在此处找到车轮文件。
You can install the wheel file with pip. First change the current directory to install location. Then,
你可以用pip安装wheel文件。首先将当前目录更改为安装位置。然后,
pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl
回答by vdwees
I had this error as well, and was able to resolve it by downgrading protobuf from 3.6.1 to 3.6.0:
我也有这个错误,并且能够通过将 protobuf 从 3.6.1 降级到 3.6.0 来解决它:
pip install protobuf==3.6.0
回答by Deli Horváth
- 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
- 窗口 10
- 蟒蛇 3.6
- 酷达 9.0
- cudnn-9.0-windows10-x64-v7.6.3.30
- 张量流-GPU == 1.12.0
- keras == 2.2.4
problem was:
问题是:
ImportError: DLL load failed: The specified procedure could not be found.
导入错误:DLL 加载失败:找不到指定的过程。
solved with:
解决了:
pip install protobuf==3.6.0
回答by Daniel Braun
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)
自 1.6 以来的所有官方 tensorflow 二进制文件都是使用 AVX 制作的,因此不支持旧的 CPU。为了在较旧的 CPU 上安装最新的 tensorflow 版本,您可以简单地从非 avx 构建的轮子安装 tensorflow(您可以在此处找到一些)
pip install <path to the downloaded .whl file>
回答by Prasanth
its the problem with python=3.6.0
它是 python=3.6.0 的问题
Upgrade to any higher versions of python 3.6
升级到任何更高版本的 python 3.6
回答by Badr Bellaj
Updating from python 3.6.0 to python 3.6.4 fixed this issue for me.
从 python 3.6.0 更新到 python 3.6.4 为我解决了这个问题。
回答by TomNorway
回答by morningriseopeth
I had the same problem.
I made it work by uninstalling scipy and then reinstalling.
First uninstall seaborn.
pip uninstall seaborn
then uninstall scipy.
pip uninstall scipy
.
After that install both scipy and seaborn.
pip install scipy
,
pip install seaborn
我有同样的问题。我通过卸载 scipy 然后重新安装来使它工作。首先卸载seaborn。
pip uninstall seaborn
然后卸载scipy。
pip uninstall scipy
. 之后安装 scipy 和 seaborn。
pip install scipy
,
pip install seaborn
I hope it helps
我希望它有帮助