xlsx and xlsm files return badzipfile: file is not a zip file

前端 未结 13 1626
灰色年华
灰色年华 2020-12-30 05:48

I\'m trying to open both an xlsx file and an xlsm file both give me the same error

badzipfile: file is not a zip file

here is wh

13条回答
  •  执念已碎
    2020-12-30 06:30

    If you call openpyxl.load_workbook with file-like object, be sure to open it in binary mode.

提交回复
热议问题