python解压rar文件

用pip安装了unrar后,使用from unrar import rarfile 报错:没有unrar模块???

在http://blog.csdn.net/ysy950803/article/details/52939708找到答案
unrar有个依赖库, http://www.rarlab.com/rar/UnRARDLL.exe下载安装,并设置系统变量变量名输入  UNRAR_LIB_PATH ,必须一模一样,变量值要特别注意!如果你是64位系统,就输入  C:\Program Files (x86)\UnrarDLL\x64\UnRAR64.dll。
感谢

猜你喜欢

转载自blog.csdn.net/weixin_41338006/article/details/79420052
今日推荐