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

前端 未结 15 2101
太阳男子
太阳男子 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:16

    You need to install the "xlrd" lib

    For Linux (Ubuntu and Derivates):

    Installing via pip: python -m pip install --user xlrd

    Install system-wide via a Linux package manager: *sudo apt-get install python-xlrd

    Windows:

    Installing via pip: *pip install xlrd

    Download the files: https://pypi.org/project/xlrd/

提交回复
热议问题