Python出错汇总(1):Missing optional dependency ‘xlrd’.Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd.
出错
Python中,使用read_excel时出错。
(模块已导入,在jupyer notebook前面的代码块)
data = pd.read_excel('data//testdata.xls')
data.head()
data.info()
jupyter中运行提示:
原因
没有安装xlrd模块,需要手动安装xlrd模块
解决方法
使用pip安装xlrd
在DOS窗口输入:pip install xlrd
再次运行jupyter notebook的代码,就可以了。