不管使用 pandas 还是 xlrd,使用的时候都报错:xlrd.biffh.XLRDError: Excel xlsx file; not supported
是因为xlrd2.0.1版本不支持.xlsx文件的读取
查看当前安装的xlrd版本:pip show xlrd
解决方法:版本过高就降低xlrd的版本
1.pip uninstall xlrd 先卸载xlrd
2.pip install xlrd==1.2.0 安装低版本的xlrd
参考链接:https://blog.csdn.net/weixin_43890415/article/details/123110748
网友评论