import webapp2 works on google-app-engine even though I don't have webapp2 installed

前端 未结 3 2051
一生所求
一生所求 2020-12-17 07:04

When I run the following hellow world program (with the GAE Launcher) it works:

import webapp2

class MainPage(webapp2.RequestHandler):
    def get(self):
           


        
3条回答
  •  没有蜡笔的小新
    2020-12-17 07:39

    It's not a bug. Appengine SDK includes webapp2 since version 1.6.

    By default, you can not import webapp2 from the terminal because google_appengine is not added to PATH by default.

    Add the following dirs to Python's PATH; C:\Program Files\Google\google_appengine\ and C:\Program Files\Google\google_appengine\lib\ and you will have the same enviroment the SDK provides.

提交回复
热议问题