pandas无法打开.xlsx文件,xlrd.biffh.XLRDError: Excel xlsx file; not supported
英文好的, 直接看这个: https://ultramadonna.com/stack-overflow/pandas-cannot-open-an-excel-xlsx-file/
原因是xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。
解决方法:升级pandas到1.2以上版本
pip install -U pandas
还没有评论,来说两句吧...