【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? 解决办法 ...
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")完美解决
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。