Python rarfile package error rarfile.RarCannotExec: Cannot find working tool (Window only)
Recently, I want to create a python script to automatically extract the zip file automatically, but I ran into a problem when zipFile could not extract rarFile so I have to use rarFile to extract the rar file.
However, I ran into a problem after I install the rarfile package, the error “cannot find working tool”. I found a solution on the internet in a different language. So I want to share how to solve the problem in English here.
The solutions to solve this issue are following steps
- Make sure install the rarfile package (https://pypi.org/project/rarfile/)
- Make sure install winRar (https://www.win-rar.com/)
- Add the path to winRar to environment variable.
- Reset the IDE and Reopen the command prompt.
Sources: