当前位置: 首页 > 工具软件 > A Tree > 使用案例 >

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

东门胤
2023-12-01

问题描述

在学习《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 即可

 类似资料:

相关阅读

相关文章

相关问答