运行解压 rar 出错

运行解压 rar 文件出现问题
下面是代码
import rarfile
path = “C:/Users/DigitalChina/Desktop/ 对账单 /1.rar”

path2 = “C:/Users/DigitalChina/Desktop/ 解压”

rf = rarfile.RarFile(path)

rf.extractall(path2)
报错:rarfile.BadRarFile: Not a RAR file

from unrar import rarfile
path = “C:/Users/DigitalChina/Desktop/ 对账单 /1.rar”

path2 = “C:/Users/DigitalChina/Desktop/ 解压”

rf = rarfile.RarFile(path)

rf.extractall(path2)

报错:unrar.rarfile.BadRarFile: Invalid RAR file