读取excel表格时出现xlrd.biffh.XLRDError: Excel xlsx file; not supported
xlrd
原因是xlrd更新到了2.0.1版本,只支持.xls文件
尝试修改版本
pip uninstall xlrd
pip install xlrd==1.2.0
不再报错
在尝试使用Python的xlrd库读取.xlsx文件时遇到了错误'xlrd.biffh.XLRDError: Excel xlsx file; not supported'。原因在于xlrd新版本2.0.1不支持.xlsx格式,解决方案是回退到1.2.0版本。通过pip uninstall xlrd卸载现有版本,然后使用pip install xlrd==1.2.0安装兼容版本,问题得到解决。
读取excel表格时出现xlrd.biffh.XLRDError: Excel xlsx file; not supported
xlrd
原因是xlrd更新到了2.0.1版本,只支持.xls文件
尝试修改版本
pip uninstall xlrd
pip install xlrd==1.2.0
不再报错

被折叠的 条评论
为什么被折叠?