Python3安装lxml

你的名字 2023-02-20 12:30 86阅读 0赞
  1. pip3 install lxml

如果使用国外的源下载速度慢,我们可以使用国内的源进行提速:

  • 豆瓣源

    1. pip3 install lxml -i https://pypi.douban.com/simple
  • 清华大学源

    1. pip3 install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple

如果不安装lxml库,则在使用时会提示:

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

发表评论

表情:
评论列表 (有 0 条评论,86人围观)

还没有评论,来说两句吧...

相关阅读