首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法执行此命令“rasa run actions &rasa shell”

无法执行此命令“rasa run actions &rasa shell”
EN

Stack Overflow用户
提问于 2020-05-20 08:55:30
回答 2查看 447关注 0票数 0

使用Rasa开源,我试图执行(Windows Powershell)这个命令rasa run action & rasa shell,它产生了一些错误,如下所示:

代码语言:javascript
复制
At line:1 char:17
+ rasa run action & rasa shell
+                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to      
pass it as part of a string.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-05-20 14:48:40

在PowerShell中,您可以使用分号来运行两个命令(请注意,它应该是rasa运行操作):

代码语言:javascript
复制
rasa shell; rasa run actions

在cmd中,你仍然可以使用“与”符号。

然而,这在Windows上不起作用,因为Windows中的命令是按顺序运行的。一种解决方案是每个命令都有一个终端会话(您也不会混淆日志,如果需要,只能重新启动一个)

票数 2
EN

Stack Overflow用户

发布于 2021-06-04 00:41:04

您正尝试在shell上运行两个不同的命令。shell不知道"&“。

Rasa run命令用于在localhost:5005上将rasa框架作为服务器运行

鉴于

在终端的聊天机器人上使用rasa shell运行,服务器会自动启动。

我更喜欢在2个不同的shell中运行该命令,以减少调试混乱

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61903298

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档