将代码拷贝到服务器上运行,发生错误提示需要新安装parser library.
查看代码中发现有以下内容:
soup = BeautifulSoup(open(fp), 'xml')
安装解析库即可:
pip install lxml
Posted everfight的成长之路
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to i相关的知识,希望对你有一定的参考价值。
将代码拷贝到服务器上运行,发生错误提示需要新安装parser library.
查看代码中发现有以下内容:
soup = BeautifulSoup(open(fp), 'xml')
安装解析库即可:
pip install lxml
以上是关于[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to i的主要内容,如果未能解决你的问题,请参考以下文章