Also there existing already several questions on this topic with solutions:
Pandas cannot open an Excel (.xlsx) file
xlrd.biffh.XLRDError: Excel xlsx file; not supported
I am working with python 3.9
in visual studio code with the packages:
xlrd 2.0.1
pandas 1.1.5
openpyxl 3.1.2
when I am running the command:
mapping = pd.read_excel('mapping/mapping.xlsx', dtype=str, engine='openpyxl')
or:
mapping = pd.read_excel('mapping/mapping.xlsx', dtype=str)
it both gives the error:
XLRDError: Excel xlsx file; not supported
The solutions provided in the similar questions don't help me here.