본문 바로가기

카테고리 없음

[python] Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? 에러 처리

반응형

 

 

beautifulsoup을 사용하다보면 초기 실행시 아래와 같은 에러가 뜰때가 있다. 

 

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

 

이는 내용을 파싱할 lxml 파이썬 패키지가 없어서 생긴문제이기 때문에, 아래와 같이 pip 명령어를 통해서 추가적으로 수행해주면 된다.

 

pip install lxml

 

반응형