import py7zr import brotlicffi as brotli with py7zr.SevenZipFile(f"C:/Users/download/file.7z", mode='r') as z: z.extractall("C:/Users/download/")