无法使用Pandas读取html文件 [英] Unable to read the html file using Pandas

查看:191
本文介绍了无法使用Pandas读取html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用熊猫读取HTML文件.下面是错误屏幕截图:

I am unable to read the HTML files using pandas. Below is the error screenshot:

推荐答案

请参考链接,以获取在stackoverflow中讨论的同一html解析问题: html5lib:TypeError:__init __()获得了意外的关键字参数'encoding '

Kindly refer to the link for the same html parsing problem discussed in stackoverflow: html5lib: TypeError: __init__() got an unexpected keyword argument 'encoding'

您必须通过pip安装

html5lib =="0.9999999"

html5lib=="0.9999999"

这里的问题仍然存在于html5lib解析树中,因此您必须单独安装html5lib,因为我们无法升级Pandas库中的特定模块.

The problem here persists with the html5lib parse tree so you have to install html5lib separately since we can't upgrade specific modules in Pandas library.

这篇关于无法使用Pandas读取html文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆