[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library? 将代码拷贝到服务器上运行,发生错误提示需要新安装parser library. 查看代码中发现有以下内容: soup = BeautifulSoup(open(fp), 'xml') 安装解析库即可: pip install lxml