我安装了Python3.5.2和Python2.7.12(在Windows上)。但是,当我尝试使用进行Python部署时,我会收到以下错误消息:
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报告这个bug,我想如果他们想要修复的话。
发布于 2016-08-17 08:51:17
您需要选择正确的Python路径,当您有多个Python副本时,可能会选择错误的路径作为默认路径。
通常是C:\Python27\pythonw.exe,但是,如果您在安装过程中更改了它,则可能是另外一种情况。
转到Google启动程序,将路径更改为编辑/首选项中您想要的路径。
https://stackoverflow.com/questions/38991770
复制相似问题