要求した機能を備えたツリービルダーが見つかりませんでした:lxml。パーサーをインストールする必要がありますか



Couldnt Find Tree Builder With Features You Requested



今日上司と一緒にPythonを書いているときにこのエラーを見つけました




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


解決:



pip install lxml (simple and effective ahaha) https://pypi.org/project/lxml/2.3/

または

コードを入れる'lxml'への変更'html.parser'(何も解析できません)