xlrd.biffh.XLRDError: Excel xlsx file; not supported解决方法

xlrd.biffh.XLRDError: Excel xlsx file; not supported解决方法


在运用python中xlrd库读取.xlsx文件时报错,无法读取。这是由于当前python中的xlrd版本过高导致的,高版本下删除的对应的.xlsx读取方法。因此,只需要重装xlrd即可,win+R打开cmd,输入下文,即可解决该问题

pip3 install xlrd==1.2.0

猜你喜欢

转载自blog.csdn.net/qq_43605229/article/details/116462410