我做了必要的步骤,我可以从 shell 成功运行: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上没有成功: 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?可能是什么问题?
添加回答
举报
0/150
提交
取消