Python使用xlrd读取Excel数据时,“xlrd.biffh.XLRDError: Excel xlsx file; not supported”报错的解决方法_xlrd.biffh.xlrderror: excel xlsx file; not support-CSDN博客

网站介绍:文章浏览阅读1.8w次,点赞38次,收藏46次。最近,在使用PyCharm中的xlrd读取Excel数据时,出现了“xlrd.biffh.XLRDError: Excel xlsx file; not supported”的错误,如下所示:错误分析: 我安装的xlrd版本为2.0.1版,程序报错主要是xlrd的2.0以上版本不支持后缀名.xlsx文件的读取,支持.xls文件的读取。解决方法: 在PyCharm下,想要正确读取.xlsx文件的数据,可以选择File中的Settings—>Project Python_Excel—&_xlrd.biffh.xlrderror: excel xlsx file; not supported