bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml,


原因:

虽然在程序中引入bs4类库,但是需要在ba4中安装lxml包

具体操作:

注释:本人使用python2.7版本

在PyCharm中 点击:file-->setting进入如图所示:


bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml


双击lxml进入如图:

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml

需等待一段时间!

至此,问题得到解决!!!