如何在带有 dev_appserver.py 的 Google App Engine

我做了必要的步骤,我可以从 shell 成功运行:


pip install lxml -t lib

cd lib

python

>>> from bs4 import BeautifulSoup

>>> import lxml

>>> res = BeautifulSoup("<p>hello</p>","lxml")

>>> print res

<html><body><p>hello</p></body></html>

但是在 Google App Enginedev_appserver.py上没有成功:


 from bs4 import BeautifulSoup

 import lxml

 import lxml

 p1 = BeautifulSoup("<p>toto</p>","lxml")

错误是:


Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

可能是什么问题?


慕哥6287543
浏览 174回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python