Bad magic number error with ZipFile module in Python
问题 I am using Python 2.7 on Windows 7 (64 bit). When I try to unzip a zip file with ZipFile module I get the following error:- Traceback (most recent call last): File "unzip.py", line 8, in <module> z.extract(name) File "C:\Python27\lib\zipfile.py", line 950, in extract return self._extract_member(member, path, pwd) File "C:\Python27\lib\zipfile.py", line 993, in _extract_member source = self.open(member, pwd=pwd) File "C:\Python27\lib\zipfile.py", line 897, in open raise BadZipfile, "Bad magic