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

python3.6.3   html

我在处理爬虫时候使用BeautifulSoup中遇到报错python

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

在查阅资料中偶遇一种简单的解决方式:把代码中的'lxml'改为'html.parser'后成功解决。
spa

相关文章
相关标签/搜索