当前位置:网站首页>Pychart reads excel file with error: raise xlrderror (file_format_descriptions[file_format]+; not supported)

Pychart reads excel file with error: raise xlrderror (file_format_descriptions[file_format]+; not supported)

2022-07-23 14:20:00 Don't take 4.0, don't change your signature

Error reason

The high version of the xlrd package ( Such as 2.0.1 edition ) Don't support open_workbook The function reads the suffix xlsx Of Excel file .

resolvent

stay Python Install in xlrd2 Package replaces the original xlrd Bag can , The specific installation method is :
① Enter at the top of the code import xlrd2, After input, because this package is not installed , Therefore, it will be marked with red wavy lines , As shown in the figure below :
 Insert picture description here
② Move the mouse to the red wavy line , Click... In the dialog box that pops up below “ Install package xlrd2” that will do .
 Insert picture description here

原网站

版权声明
本文为[Don't take 4.0, don't change your signature]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230806383353.html