使用openpyxl模块时出现错误: zipfile.BadZipFile: File is not a zip file通过Pycharm工具新建一个xlsx文件。

再通过openpyxl模块读取该表时,报错: zipfile.BadZipFile: File is not a zip file 如下所示:

使用openpyxl模块时出现错误: zipfile.BadZipFile: File is not a zip file

 

解决办法:删除通过Pycharm工具新建的xlsx文件,再使用office软件新建一个xlsx表。后问题解决。

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-09-08
  • 2021-10-24
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2020-04-28
  • 2021-12-19
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案