报错原因: 之所以有“XLRDError: Excel xlsx file; not supported”报错,是因为最近的xlrd更新到了2.0.1版本,它只支持.xls文件。 解决方法: 可以直接利用openpyxl代替xlrd打开.xlsx文件,如: df = pd.read_excel('在售二手房数据.xlsx',engine='openpyxl') 也可以安装旧版的xlrd: pip uninstall xlrd pip install xlrd==1.2.0