pandas无法打开.xlsx文件,xlrd.biffh.XLRDError: Excel xlsx file; not supported
原因是最近xlrd更新后只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。可以安装旧版xlrd,在终端中运行:pip3 uninstall xlrdpip3 install xlrd==1.2.0也可以用openpyxl代替xlrd打开.xlsx文件:pip3 install openpyxl接着可在python脚本中执行:df=pandas.read_excel(‘data.xlsx’,engine=‘openpyxl’)...





