sudo apt-get install p7zip-full 7z -pMyPasswordHere x my_file_with_pass.zip
unzip -P password file.zip
from zipfile import ZipFile import zipfile myzip = ZipFile('test.zip') myzip.extract(member='Roughwork/pretify.html',pwd="paswordhere")