[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to i

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的主要内容,如果未能解决你的问题,请参考以下文章

ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

iOS模拟器URLWithString The operation couldn't be completed. (Cocoa error 256.)

Failed to import package with error: Couldn't decompress package的解决方案

YUM安装提示PYCURL ERROR 6 - "Couldn't错误的解决办法

Error: couldn't add user: No role named clusterAdmin@dsform :

insh.exe:*** Couldn't reserve space for cygwin's heap,Win32 error 0