我同时安装了Python 3.5.2和Python 2.7.12(在Windows上)。但是,当我尝试使用谷歌的App Engine SDK的Python的部署,我收到此错误信息:在Python中使用Google App Engine SDK for Python 3
in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
NameError: name 'execfile' is not defined
2016-08-17 11:28:50 (Process exited with code 1)
我只能通过命令行配置:
C:\Python27\python.exe "C:\Program Files (x86)\Google\google_appengine\appcfg.py" update app.yaml
是否有部署方式与Python 2而不是Python 3?不使用命令行?我怎么向Google报告这个错误,我想如果他们想让他们修复Google App Engine SDK的话。
看起来像[此帖](http://stackoverflow.com/a/10227164/5272038)可能能够解决您的问题。 –
@ShubhamVasaikar谢谢,它工作! – Uri