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

Beautiful Soup安装后无法解析xml文件

解决方法:

pip install lxml

在python中

soup = BeautifulSoup(file, "lxml")

参考文献:
https://stackoverflow.com/questions/24398302/bs4-featurenotfound-couldnt-find-a-tree-builder-with-the-features-you-requeste