2023-06-03 Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

发布时间 2023-06-03 16:16:30作者: 哎呦你可棒棒了

运行一个py文件,问题定位到:

html=self.get_html(url)
soup=BeautifulSoup(html,'lxml')

解决方案:打开cmd,运行下面代码:

pip install lxml

等待安装成功,再次运行py文件就不会报这个错了。