python3.7使用beautifulsoup4使用lxml解析库报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/edtwar/article/details/89043179
添加import lxml 安装一下 就可以食用了

  看了其他人的回答(我没试用过 不清楚),归纳一下:      

方法一:

pip install lxml

或是 

  conda install lxml

方法二:

soup = BeautifulSoup(html, 'html.parser')

参考网站:    https://stackoverflow.com/questions/24398302/bs4-featurenotfound-couldnt-find-a-tree-builder-with-the-features-you-requeste

猜你喜欢

转载自blog.csdn.net/edtwar/article/details/89043179