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

前端 未结 13 1628
灰色年华
灰色年华 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条回答
  •  旧时难觅i
    2020-12-30 06:32

    I have been facing this error for a while and so i just uninstalled openpyxl and reinstall version 2.6.3 and it worked well. This might help you too, no need to change anything just run these commands using pip

    pip uninstall openpyxl
    
    pip install openpyxl==2.6.3
    

    Hope it helps you.

提交回复
热议问题