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-10-01 20:34:20 发布