python lxml unavailable in dev_appserver(gae,windows)
Question: I have installed lxml yet.

It works fine in IDLE.

But when I start an basic app described below with dev_appserver.py ,server
returns error "No module named lxml".

    
    
    import webapp2,lxml
    
    class MainPage(webapp2.RequestHandler):
        def get(self):
            self.response.out.write("test")
    app = webapp2.WSGIApplication([("/(.*)", MainPage)],debug=True)
    

How can I resolve this??

Thanks!!


Answer: Assumingly you're using Python 2.7 runtime. This runtime provides a fine way
for configuring libraries.

Please add libraries section in your app.yaml as follows:

    
    
    libraries:
    - name: lxml
      version: latest
    

For more details, please see:
<https://developers.google.com/appengine/docs/python/python27/using27#Configuring_Libraries>

