bs4.FeatureNotFound couldnot find a tree builder with the features you requested lxml

python,BeautifulSoup,lxml

2019.04.06

python 中使用 BeautifulSoup 解析 html 的时候报错:

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

根据提示,缺少 lxml 这个 feature 。需要通过 pip 安装 lxml 。

pip install lxml

相关文章

- EOF -

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]
本文标题: bs4.FeatureNotFound couldnot find a tree builder with the features you requested lxml
本文地址: https://binkery.com/archives/401010.html

赞助商
网站统计
  • 网站运行:3253 天
  • 文章总数:736 篇
  • 网站统计