xlrd import issue with Python 2.7

后端 未结 7 1134
不思量自难忘°
不思量自难忘° 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 08:00

    Please add "C:\Python27\Lib\site-packages\" to your PYTHONPATH in your system variables.

    If there is no such SYSTEM VARIABLE, please create it:

    1. Right-click the My Computer icon on your desktop and select Properties.
    2. Click the Advanced tab, then click the Environment Variables button.
    3. Under System Variables, click New.
    4. Enter the variable name as PYTHONPATH.
    5. Enter the variable value as C:\Python27\Lib\site-packages\
    6. Click OK.
    7. Click Apply Changes.

提交回复
热议问题