我做了必要的步驟,我可以從 shell 成功運(yùn)行:pip install lxml -t libcd libpython>>> 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上沒(méi)有成功: from bs4 import BeautifulSoup import lxml import lxml p1 = BeautifulSoup("<p>toto</p>","lxml")錯(cuò)誤是:Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?可能是什么問(wèn)題?
添加回答
舉報(bào)
0/150
提交
取消