“lxml not found, please install it” error on Google Colaboratory

はまったので

 

BeautifulSoupとpython3のversionのインコンパチがおこってそう

 

pip freeze | grep -e request -e lxml -e beautiful

 

beautifulsoup4==4.6.3 lxml==4.2.5 requests==2.18.4 requests-oauthlib==1.0.0

 

Localだとlxml==4.2.5のみ

 

pip3でもうまくいかず、、

 

とりあえずはhtml.parserで逃げることに

違いは速度などあるが

 

そういやこの明示していはversion 4かららしい

 

Beautiful Soup 4.x では parser を明示指定しよう - AWS / PHP / Python ちょいメモ