JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

2023-06-03 Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

发布时间 2023-06-03 16:16:30作者: 哎呦你可棒棒了

运行一个py文件,问题定位到:

html=self.get_html(url)
soup=BeautifulSoup(html,'lxml')

解决方案:打开cmd,运行下面代码:

pip install lxml

等待安装成功,再次运行py文件就不会报这个错了。

 

    本栏目推荐文章
  • MIUI EU ROM install and upgrade
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • Python中出现"No module named 'requests'"的图文解决办法
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
  • pytest 内置fixture-request
  • 解决前后端的跨域问题:Access to XMLHttpRequest at '**' from origin '**' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • GitHub Pull request 同步解决代码冲突
  • No 'Access-Control-Allow-Origin' header is present on the requested resource', 跨域访问的解决方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们