bs4解析网页时报错:
bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因:不可以使用 BeautifulSoup(html,‘lxml’) 没有找到lxml解析器
解决办法一:
可以在pycharm 直接手动导入

解决办法二:
在cmd目录下直接安装:pip install lxml
已解决:bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.
最新推荐文章于 2024-08-03 13:19:01 发布
本文解决bs4解析网页时遇到的FeatureNotFound错误,详细介绍了两种解决方法:手动导入lxml库或通过pip安装lxml。
1662

被折叠的 条评论
为什么被折叠?



