Couldn't find a tree builder with the features you requested: lxml. Do you need to install a par
Posted 张子木
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Couldn't find a tree builder with the features you requested: lxml. Do you need to install a par相关的知识,希望对你有一定的参考价值。
python3.6.3
我在处理爬虫时候使用BeautifulSoup中遇到报错
“ bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml. Do you need to install a parser library? ”
在查阅资料中偶遇一种简单的解决方式:把代码中的‘lxml‘改成‘html.parser‘后成功解决。
以上是关于Couldn't find a tree builder with the features you requested: lxml. Do you need to install a par的主要内容,如果未能解决你的问题,请参考以下文章