在使用pandas读取excel文件的时候,pycharm报错,但是使用jupyter没有问题
import pandas as pd
df_excel = pd.read_excel('E:\\.....\\hello\\1.xlsx')
print(df_excel)
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
我在pycharm里面使用的是虚拟环境,所以在Anaconda的虚拟环境中,安装pyexcel-xls和pyexcel-xlsx
pip install pyexcel-xls
pip install pyexcel-xlsx