Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support

前端 未结 15 2097
太阳男子
太阳男子 2021-02-01 12:04

I am trying to read a .xlsx with pandas, but get the follwing error:

data = pd.read_excel(low_memory=False, io=\"DataAnalysis1/temp1.xlsx\").fillna(         


        
15条回答
  •  无人及你
    2021-02-01 12:26

    I encountered same problem and took 2 hours to figure it out.

    1. pip install xlrd (latest)
    2. pip install pandas (latest)
    3. Go to C:\Python27\Lib\site-packages and check for xlrd folder (if there are 2 of them) delete the old version
    4. open a new terminal and use pandas to read excel. It should work.

提交回复
热议问题