首页 > 其他分享 >xlrd.biffh.XLRDError: Excel xlsx file; not supported

xlrd.biffh.XLRDError: Excel xlsx file; not supported

时间:2023-01-04 18:36:42浏览次数:33  
标签:xlsx 1.2 supported Excel 格式文件 版本 xlrd 最新版


1、问题描述

使用xlrd读取‘*.xlsx’文件的时候出现一下错误

xlrd.biffh.XLRDError: Excel xlsx file; not supported_解决方案

2、解决方案

实际上那个是xlrd的版本问题,当前最新版xlrd是‘2.0.1’的,只支持‘*.xls’格式文件,把xlrd版本降低到’1.2.0’就行了

pip install xlrd==1.2.0

3、参考资料


标签:xlsx,1.2,supported,Excel,格式文件,版本,xlrd,最新版
From: https://blog.51cto.com/u_14597003/5989170

相关文章