1

我想 使用 python 脚本 运行npx 命令行工具subprocess.Popen("npx chatito trainClimateBot.chatito",shell=True).wait(),类似于: 但这不起作用并引发以下错误:,

 ==== CHATITO SYNTAX ERROR ====
     Expected "#", "%", "//", "@[", "import ", "~", or end of line  but end of input found.
     Line: 1, Column: 1
==============================
FULL ERROR REPORT:
{ SyntaxError: Expected "#", "%", "//", "@[", "import ", "~", or end of line  but end of input found.
at peg$buildStructuredError (.\.\.\npm-cache\_npx\10168\node_modules\chatito\parser\chatito.js:381:12)
at Object.peg$parse [as parse] ((.\.\.\npm-cache\_npx\10168\node_modules\chatito\parser\chatito.js:3563:11)

那么,有没有办法通过 python 脚本运行 npx 命令?

4

0 回答 0