文章 2024-08-02 来自:开发者社区

【Python 3】解决FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.

问题 环境:Python3.6使用如下代码时 soup = BeautifulSoup(s, “html”) 报错FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library? 解决办法 ...

文章 2022-10-19 来自:开发者社区

python报错bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.

soup = BeautifulSoup(r.text,"lxml")改为soup = BeautifulSoup(r.text,"html.parser")完美解决

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

Python学习站

Python学习资料大全,包含Python编程学习、实战案例分享、开发者必知词条等内容。

+关注
相关镜像
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等

登录插画

登录以查看您的控制台资源

管理云资源
状态一览
快捷访问