gpt4 book ai didi

找不到 Python Keras 在 Windows 10 _gru_ops.dll 上的安装

转载 作者:行者123 更新时间:2023-11-28 19:08:07 25 4
gpt4 key购买 nike

我必须在 Windows 10 上安装带有 TensorFlow 的 Keras。我遵循了官网的教程 https://keras.io/#installation .

Tensorflow 和 Keras 的安装似乎工作正常,但是当我在 python 终端中导入 Keras 时,我有这个:

>>> import keras
Using TensorFlow backend.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\__init__.py", line 3, in <module>
from . import activations
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\activations.py", line 6, in <module>
from .engine import Layer
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\engine\__init__.py", line 8, in <module>
from .training import Model
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\engine\training.py", line 24, in <module>
from .. import callbacks as cbks
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\callbacks.py", line 26, in <module>
from tensorflow.contrib.tensorboard.plugins import projector
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\__init__.py", line 26, in <module>
from tensorflow.contrib import crf
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\crf\__init__.py", line 32, in <module>
from tensorflow.contrib.crf.python.ops.crf import _lengths_to_masks
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\crf\python\ops\crf.py", line 44, in <module>
from tensorflow.contrib.rnn.python.ops import core_rnn_cell
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\rnn\__init__.py", line 80, in <module>
from tensorflow.contrib.rnn.python.ops.gru_ops import *
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\rnn\python\ops\gru_ops.py", line 32, in <module>
resource_loader.get_path_to_datafile("_gru_ops.so"))
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\util\loader.py", line 55, in load_op_library
ret = load_library.load_op_library(path)
File "C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\load_library.py", line 64, in load_op_library
None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: C:\Users\Clémence\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\rnn\python\ops\_gru_ops.dll not found

看起来这个文件丢失了:_gru_ops.dll

感谢您的回答和帮助

最佳答案

我遇到了同样的问题,但不知道如何正确解决。虽然 Anaconda 环境已经预装了几乎所有需要的软件包并且可以解决您的问题,但我建议您执行以下操作:

  • 从以下位置安装 Anaconda:https://www.continuum.io/downloads
  • 以管理员身份启动 Anacondas Prompt 并检查:pip install keraspip install tensorflow 如果需要的包已安装,但是
  • 现在在您的 IDE 中使用新的 Python 解释器或进行编译(例如在 PyCharm 中转到设置 --> 项目解释器并选择您的路径)

关于找不到 Python Keras 在 Windows 10 _gru_ops.dll 上的安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44424068/

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