我按步驟安裝,怎么xlrd不支持xls呢?
Traceback (most recent call last):
? File "C:\my code\test001.py", line 2, in <module>
? ? xlrd.open_workbook('class01.xlsx')
? File "C:\my code\venv\lib\site-packages\xlrd\__init__.py", line 170, in open_workbook
? ? raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
2021-02-24
在安裝xlrd插件時(shí),需要注意xlrd的版本,3,9的IDE默認(rèn)xlrd版本是2.01,這個(gè)版本不識(shí)別xlsx格式,需要在安裝xlrd時(shí)選擇指定版本,選擇1.2.0就可以了