AppEngine项目错误

时间:2014-09-23 01:22:26

标签: windows google-app-engine python-3.x

我正在尝试运行在制作appEngine项目时生成的默认程序,日志会给我这个错误

2014-09-22 21:19:08 Running command: "['C:\\Python34\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=10080', '--admin_port=8002', 'C:\\Users\\eriel\\Documents\\web\\southawnings']"
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 82, in <module>
    _run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 78, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
NameError: name 'execfile' is not defined
2014-09-22 21:19:08 (Process exited with code 1)

我正在使用Windows 8.0和appEngine的最新更新

1 个答案:

答案 0 :(得分:4)

如果安装了Python 2.7,请尝试打开Goog​​le App Engine Launcher。然后编辑 - &gt;首选项并检查正确的python路径是否已设置。 如果你在C:/上安装了Python,它应该是这样的:

C:\Python27\pythonw.exe