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

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

问题描述

在学习《PYTHON网络爬虫从入门到实践》一书时,用 jupyter notebook 运行书中代码时遇到如下报错

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

出错原因

由于PYTHON3中没有html解析器,即lxml

解决方法

sudo pip3 install lxml

安装完重新启动 jupyter notebook 即可

猜你喜欢

转载自blog.csdn.net/gq__97/article/details/84026087