原文:bs4 FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

安装beautifulsoup后,运行测试报错 经过测试发现是lxml的问题,使用 pip install lxml 安装,安装完后,在运行还是一样出错, 经百度 知乎的说法是新的库不支持,新版本语法支持改变了 使用 pip install lxml时,自动安装的是最新 . . 版本 解决方法一: 卸载新的换老的就可以了 pip uninstall lxml pip install lxml . ...

2018-10-08 11:24 2 15404 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM