其他分享
首页 > 其他分享> > 报错

报错

作者:互联网

代码:
import pandas as pd
df = pd.read_excel('test.xlsx')
print(df)

报错误:ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd.

xlrd.biffh.XLRDError: Excel xlsx file; not supported

解决方法:
pip install xlrd==1.2.0

标签:xlsx,df,Excel,报错,pd,pip,xlrd
来源: https://www.cnblogs.com/hellozizi/p/16575781.html