python reads excel error Excel xlsx file; not supported solution

Problem Description:

When python reads an excel file, an Excel xlsx file; not supported error is reported.
Insert image description here


Source of the problem:

Versions after xlrd1.2.0 do not support xlsx format, only xls format


Solution:

``1. Uninstall the higher version of xlrd and install the old version 1.2.0 of xlrd.

pip uninstall xlrd
pip install xlrd==1.2.0

uninstall
2. Save the excel file from xlsx to xls. ( recommended )

Guess you like

Origin blog.csdn.net/liangxiaoyan0426/article/details/130882898