python-3.x - 当我执行 "rasa init"错误 : "failed to install native tensorflow runtime"

标签 python-3.x tensorflow rasa

当我执行“rasa init”操作时,它会抛出以下错误:“无法安装 native tensorflow 运行时”。我尝试将其升级为 tensor flow =1.15,但 rasa 仅使用 tensorflow>2.1。

回溯(最近一次调用最后一次):
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”,第58行,在
从 tensorflow.python.pywrap_tensorflow_internal 导入 *
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”,第28行,在
_pywrap_tensorflow_internal = swig_import_helper()
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
文件“c:\users\udays.conda\envs\chatbots\lib\imp.py”,第 243 行,在 load_module 中
返回负载动态(名称,文件名,文件)
文件“c:\users\udays.conda\envs\chatbots\lib\imp.py”,第 343 行,在 load_dynamic
返回 _load(spec)
导入错误:DLL 加载失败:找不到指定的模块。

在处理上述异常的过程中,又发生了一个异常:

回溯(最近一次调用最后一次):
文件“c:\users\udays.conda\envs\chatbots\lib\runpy.py”,第 193 行,在 _run_module_as_main
" ", mod_spec)
_run_code 中的文件“c:\users\udays.conda\envs\chatbots\lib\runpy.py”,第 85 行
exec(代码,run_globals)
文件“C:\Users\udays.conda\envs\chatbots\Scripts\rasa.exe__main__.py”,第 7 行,在
文件 "c:\users\udays.conda\envs\chatbots\lib\site-packages\rasa__main__.py", line 82, in main
设置日志级别(日志级别)
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\rasa\utils\common.py”,第 71 行,在 set_log_level
update_tensorflow_log_level()
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\rasa\utils\common.py”,第 107 行,在 update_tensorflow_log_level
将 tensorflow 导入为 tf
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow__init__.py”,第101行,在
从 tensorflow_core 导入 *
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core__init__.py”,第 40 行,在
从 tensorflow.python.tools 导入 module_util 作为 _module_util
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow__init__.py”,第 50 行,在 中getattr
模块 = self._load()
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow__init__.py”,第 44 行,在 _load
模块 = _importlib.import_module(self. 名称 )
文件“c:\users\udays.conda\envs\chatbots\lib\importlib__init__.py”,第 126 行,在 import_module 中
返回_bootstrap._gcd_import(名称[级别:],包,级别)
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python__init__.py”,第 49 行,在
从 tensorflow.python 导入 pywrap_tensorflow
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”,第 74 行,在
引发导入错误(消息)
导入错误:回溯(最近一次调用最后一次):
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”,第58行,在
从 tensorflow.python.pywrap_tensorflow_internal 导入 *
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”,第28行,在
_pywrap_tensorflow_internal = swig_import_helper()
文件“c:\users\udays.conda\envs\chatbots\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
文件“c:\users\udays.conda\envs\chatbots\lib\imp.py”,第 243 行,在 load_module 中
返回负载动态(名称,文件名,文件)
文件“c:\users\udays.conda\envs\chatbots\lib\imp.py”,第 343 行,在 load_dynamic
返回 _load(spec)
导入错误:DLL 加载失败:找不到指定的模块。

无法加载 native TensorFlow 运行时。

https://www.tensorflow.org/install/errors

出于一些常见的原因和解决方案。包括整个堆栈跟踪
寻求帮助时出现在此错误消息上方。

最佳答案

我也面临同样的问题。我通过使用以下链接安装 c++ 构建工具来修复它。
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

关于python-3.x - 当我执行 "rasa init"错误 : "failed to install native tensorflow runtime",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60747439/

相关文章:

tensorflow - RASA 初始化错误 : tensorflow. python.framework.errors_impl.InvalidArgumentError:断言失败:[0] [Op:Assert] 名称:EagerVariableNameReuse

python-3.x - 如何强制 pip 直接从 Internet 而不是本地缓存安装包?

python - 从列表中的列表中获取最小最大值

python - BatchToSpaceND 实际上是如何工作的?

python - 在 Tensorflow 2.2.0 中,我的 model.history.history 在拟合数据和 validation_data 后为空

python - RASA - rasa 运行操作 - 本地主机问题

Rasa - 为什么我需要在 domain.yml 中列出意图?

python - 将 float 转换为二进制

tensorflow - TFRecords 文件的分片需要什么?

python - 有了 tensorflow ,我就有了图像信息的字典。如何训练这些图像中的特征?