bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml. Do you need
·
python爬虫并且将数据写入Excel,运行过程中报错如下:
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因:不可以使用 BeautifulSp(lxml,'lxml_parser')
解决办法:安装lxml库
具体操作如下:
①pChar工具,左上角File→Settings;如下图一
②Python Interpreter→点击左下角的【+】,如下图二;
③搜索框输入“lxml”,下载安装,如下图三;
等待几分钟,安装成功,如下图四。




魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)