xlrd import issue with Python 2.7

后端 未结 7 1115
不思量自难忘°
不思量自难忘° 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

    python -m pip install xlrd

    For my case I have both python2 and python3 installed, pip install xlrd default install xlrd into the Python3 library (/usr/local/lib/python3.6/site-packages/xlrd/. By specifying python2 for pip install solved my problem.

提交回复
热议问题