xlrd import issue with Python 2.7

后端 未结 7 1131
不思量自难忘°
不思量自难忘° 2020-12-31 07:35

I have an assignment to read excel data in Python. I have Python 2.7 installed. I tried installing xlrd0.8.0 with the following commands in Windows.

C:\\Pyth         


        
7条回答
  •  心在旅途
    2020-12-31 07:52

    Resolving issue with xlrd import in Python 2.7

    open this link https://bootstrap.pypa.io/get-pip.py and save as get-pip.py and copy this file into C:\Python2.7\

    C:\Python2.7\python.exe get-pip.py
    

    After this pip is installed in your system now installing xlrd

    C:\Python2.7\python.exe -m pip install xlrd
    

    Open python and import xlrd

    import xlrd
    

    it will work.

提交回复
热议问题