Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine GAE开发应用服务器“;没有名为lxml的模块;_Google App Engine_Python 2.7_Lxml - Fatal编程技术网

Google app engine GAE开发应用服务器“;没有名为lxml的模块;

Google app engine GAE开发应用服务器“;没有名为lxml的模块;,google-app-engine,python-2.7,lxml,Google App Engine,Python 2.7,Lxml,似乎lxml在dev_appserver中对我不可用。我有一个测试项目是用WindowsPythonSDK1.6.6构建的导入lxml。“没有名为lxml的模块”。我假设安装了python版本,但我有python 2.7 import webapp2 import lxml class MainHandler(webapp2.RequestHandler): def get(self): self.response.out.write('Hello world!')

似乎lxml在dev_appserver中对我不可用。我有一个测试项目是用WindowsPythonSDK1.6.6构建的导入lxml。“没有名为lxml的模块”。我假设安装了python版本,但我有python 2.7

import webapp2
import lxml

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.out.write('Hello world!')

app = webapp2.WSGIApplication([('/', MainHandler)],
                              debug=True)
===

==


更新:这不再是真的,lxml现在是现成的。



lxml不是Google App Engine的现成版本,你需要。

我一直收到“没有模块名为lxml”的错误,但无法单独安装模块,我通过告诉pip使用特定的版本号安装解决了这一问题,就像这样

pip安装lxml==[版本号]


哇,我不知道,我认为谷歌有一个特别的版本。我认为他们不能绑定到安装程序,因为许可问题。这不是许可问题,而是SDK中有二进制文件的问题(或者在安装过程中需要编译)。但是谷歌应用引擎的python环境在哪里???我应该在哪里安装它?
application: teslxml
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.1"
- name: lxml
  version: latest
dev_appserver.py teslxml