execfile未在谷歌应用引擎中定义

时间:2017-02-03 02:45:09

标签: google-app-engine

我尝试卸载并重新安装和修复谷歌应用引擎无济于事。

这里是日志

2017-02-02 20:22:42 Running command: "['C:\\Program Files (x86)\\Python35-32\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=11080', '--admin_port=8003', 'C:\\Users\\Admin\\code\\engineapp']"
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 89, in <module>
    _run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 85, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
NameError: name 'execfile' is not defined
2017-02-02 20:22:42 (Process exited with code 1)

1 个答案:

答案 0 :(得分:2)

  

&#39; C:\ Program Files(x86)\ Python35-32 \ pythonw.exe&#39;

您似乎正在运行Python 3,GAE标准环境不支持。

您需要切换到Python 2.7。