【发布时间】:2020-02-04 12:06:14
【问题描述】:
我正在尝试在 PHP 应用程序引擎中通过 PHP 运行 python 脚本,我做了一个 helloworld 脚本,它使用 PHP 在本地运行:
$command = escapeshellcmd("python test.py");
$output = shell_exec($command);
但是当我将它发送到 appengine 并尝试触发时,我在服务日志中收到以下消息:
WARNING: [pool app] child 16 said into stderr: "sh: 1: python: not found"
【问题讨论】:
标签: python php google-app-engine