Traceback (most recent call last):\n File "C:/Users/生姜红糖/AppData/Local/Programs/Python/Python39/1.py", line 2, in \n dfs = pandas.read_html("https://www.luogu.com.cn/record/list?user=369Pai&status=12&page=41")\n File "C:\Users\生姜红糖\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\html.py", line 1212, in read_html\n return _parse(\n File "C:\Users\生姜红糖\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\html.py", line 977, in _parse\n parser = _parser_dispatch(flav)\n File "C:\Users\生姜红糖\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\html.py", line 934, in _parser_dispatch\n raise ImportError("lxml not found, please install it")\nImportError: lxml not found, please install it\n上述是什么问题内容:上述问题是导入lxml库失败所导致的错误。

Python Pandas read_html 错误:lxml 库未找到

原文地址: https://www.cveoy.top/t/topic/pCd4 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录