已解决:bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.

bs4解析网页时报错:
bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因:不可以使用 BeautifulSoup(html,‘lxml’) 没有找到lxml解析器
解决办法一:
可以在pycharm 直接手动导入
已解决:bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml._第1张图片
解决办法二:
在cmd目录下直接安装:pip install lxml

你可能感兴趣的:(接口测试,python)