unzipping file results in “BadZipFile: File is not a zip file”

前端 未结 7 488
甜味超标
甜味超标 2020-12-16 09:13

I have two zip files, both of them open well with Windows Explorer and 7-zip.

However when i open them with Python\'s zipfile module [ zipfile.ZipFile(\"filex.zip\"

7条回答
  •  情话喂你
    2020-12-16 09:43

    Have you tried a newer python, or if that is too much trouble, simply a newer zipfile.py? I have successfully used a copy of zipfile.py from Python 2.6.2 (latest at the time) with Python 2.5 in order to open some zip files that weren't supported by Py2.5s zipfile module.

提交回复
热议问题