简体   繁体   English

在使用Google App Engine(PYTHON 2.7)时需要帮助

[英]Need help on getting started with google app engine(PYTHON 2.7)

I've installed GAE in my computer(windows 7 64-bit). 我已经在计算机上安装了GAE(Windows 7 64位)。 But whenever I click run on the program it doesn't work, and when I use the command line using dev_appserver.py this happens "dev_appserver.py is not recognized as an internal or external command, operable program or batch file". 但是,每当我单击该程序上的“运行”时,它都将不起作用,并且当我在dev_appserver.py中使用命令行时,会发生“ dev_appserver.py无法识别为内部或外部命令,可操作程序或批处理文件”。 What should I do? 我该怎么办?

edit1: Here's the log error when I'm using the program. edit1:这是我使用该程序时的日志错误。

错误信息

edit2: Here's my full python path edit2:这是我完整的python路径

C:\\Python27\\Lib\\site-packages\\PyQt4;c:\\users\\jansen\\appdata\\local\\enthought\\canopy32\\user\\scripts;C:\\Users\\jansen\\AppData\\Local\\Enthought\\Canopy32\\User;C:\\Users\\jansen\\AppData\\Local\\Enthought\\Canopy32\\User\\Scripts;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\gnuplot\\binary;C:\\Python27\\Lib\\site-packages\\osgeo;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-4;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files (x86)\\pythonxy\\swig;C:\\Program Files (x86)\\pythonxy\\gettext\\bin;C:\\Program Files (x86)\\Google\\google_appengine\\ C:\\ Python27 \\ LIB \\站点包\\ PyQt4的; C:\\用户\\扬森\\应用程序数据\\本地\\ enthought \\ canopy32 \\用户\\脚本; C:\\用户\\扬森\\应用程序数据\\本地\\ Enthought \\ Canopy32 \\用户; C ^ :\\用户\\扬森\\应用程序数据\\本地\\ Enthought \\ Canopy32 \\用户\\脚本; C:\\ Python27; C:\\ Python27 \\ DLL文件; C:\\ Python27 \\ Scripts中; C:\\ Python27 \\ LIB \\站点包\\ VTK; C:\\ Python27 \\ gnuplot \\ binary; C:\\ Python27 \\ Lib \\ site-packages \\ osgeo; C:\\ Program Files(x86)\\ pythonxy \\ SciTE-3.5.1-4; C:\\ Program Files(x86)\\ pythonxy \\ console; C:\\ Program Files(x86)\\ pythonxy \\ swig; C:\\ Program Files(x86)\\ pythonxy \\ gettext \\ bin; C:\\ Program Files(x86)\\ Google \\ google_appengine \\

dev_appserver.py is the web server that is distributed with the google appengine sdk. dev_appserver.py是与Google Appengine sdk一起分发的Web服务器。 You would run this after you have created an application. 创建应用程序后,将运行此程序。

If the command dev_appserver.py is not recognized you need to either add to your Path environment variable the location of the cloud sdk: 如果无法识别命令dev_appserver.py,则需要将Cloud sdk的位置添加到Path环境变量中:

C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin

Or specify the full path to dev_appserver when you're running it: 或在运行时指定dev_appserver的完整路径:

python C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\dev_appserver.py 

For a larger primer I would suggest walking through the provided tutorial: https://cloud.google.com/appengine/docs/python/gettingstartedpython27/introduction 对于较大的入门书籍,我建议您遍历提供的教程: https : //cloud.google.com/appengine/docs/python/gettingstartedpython27/introduction

UPDATE: Your updated question actually has nothing to do with dev_appserver but your python installation. 更新:您更新的问题实际上与dev_appserver无关,但与您的python安装无关。 See https://stackoverflow.com/a/26550917/501494 参见https://stackoverflow.com/a/26550917/501494

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM