gpt4 book ai didi

python - "ImportError: DLL load failed: The specified procedure could not be found"- 而使用 Keras 在 Python 中使用 CNN 进行数字识别

转载 作者:行者123 更新时间:2023-11-30 21:59:19 33 4
gpt4 key购买 nike

我正在尝试在Windows上使用Python中的卷积神经网络编写一个简单的字符重新定植代码。我正在关注this tutorial 。但不知何故我收到以下错误消息。我找不到这个错误的适当原因。如果有人可以通过可能的解决方案来分解错误,这对我会很有帮助。

    Using TensorFlow backend.
Traceback (most recent call last):
File "C:/Users/Mahin/PycharmProjects/characterRecognization/Learning/practice.py", line 2, in <module>
from keras.datasets import mnist
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\keras\__init__.py", line 3, in <module>
from . import utils
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\keras\utils\__init__.py", line 6, in <module>
from . import conv_utils
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\keras\utils\conv_utils.py", line 9, in <module>
from .. import backend as K
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\keras\backend\__init__.py", line 89, in <module>
from .tensorflow_backend import *
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in <module>
import tensorflow as tf
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\tensorflow\python\__init__.py", line 59, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "C:\Users\Mahin\PycharmProjects\characterRecognization\venv3.6\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.

最佳答案

检查您是否已安装 CUDA、CUDNN,并将它们添加到 PATH 变量中,以及您的 Tensorflow 版本是否拥有正确的版本(每个 Tensorflow 版本仅支持 CUDA 版本范围),例如检查 this tutorial用于安装。另外,我猜你尝试在 Windows 上安装它(基于 DLL 错误),这一点非常值得一提。

关于python - "ImportError: DLL load failed: The specified procedure could not be found"- 而使用 Keras 在 Python 中使用 CNN 进行数字识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54618946/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com