Skip to main content
 首页 » 编程设计

python之安装 Google App Engine 后无法运行默认的 python 应用程序

2024年11月01日30lautakyan007

我在日志文件中看到以下错误:

Exception in thread Thread-1: 
Traceback (most recent call last): 
  File "threading.pyc", line 486, in __bootstrap_inner 
  File "launcher\taskthread.pyc", line 65, in run 
  File "subprocess.pyc", line 594, in __init__ 
  File "subprocess.pyc", line 816, in _execute_child 
WindowsError: [Error 5] Access is denied 

请您参考如下方法:

WindowsError: [Error 5] Access is denied 

在 Windows 中,我曾经在安装适用于 PHP 的 Google App Engine SDK 后自己看到此错误。当 gae 找不到 PHP 可执行文件时会发生此错误。

问题是我指定了包含 php-cgi.exe 的文件夹的绝对路径,省略了可执行文件 php-cgi.exe 的名称!我也通过添加 tyhe 可执行文件的名称解决了这个问题。因此,您可能想再次查看您的绝对路径并进行更正。

来自文档:

Start the web server with the following command, giving it the path to your project directory:

google_appengine/dev_appserver.py --php_executable_path=absolute-path-to-php-cgi.exe myproject/

希望对你有帮助