from zipfile import ZipFile import zipfile myzip = ZipFile('test.zip') myzip.setpassword(b"alixaprodev") myzip.extract(member='Roughwork/pretify.html',pwd=b"alixaprodev") Copy Code