import zipfile with zipfile.ZipFile("file.zip","r") as zip_ref:     zip_ref.extractall("targetdir")

Read more of this post