title: Rarfile python module keeps throwing an error when trying to extract contents from a *.rar file
body: <p>So im trying to simply extract the contents of a rar file into another location-</p>
  
  <pre><code>import rarfile
  
  epath='C:\\Users\\sidharth.m\\Desktop\\Rar\\xyz.rar'
  
  def unrar(file):
      rf = rarfile.RarFile(file)
      rf.extractall()
  
  unrar(epath)
  </code></pre>
  
  <p>But im getting the following error -</p>
  
  <blockquote>
    <blockquote>
      <p>Traceback (most recent call last):<br>
      File "C:\ProgramData\Anaconda3\lib\site-packages\rarfile.py", line 2816, in
      custom_popen raise RarCannotExec("Unrar not installed?
      (rarfile.UNRAR_TOOL=%r)" % UNRAR_TOOL) rarfile.RarCannotExec: Unrar
      not installed? (rarfile.UNRAR_TOOL='unrar')</p>
    </blockquote>
  </blockquote>
  
  <p>Ive already tried adding and installing the rarfile and unrar packages through anaconda prompt and cmd, ive also added their respective paths into the environmental path variables and if that wasnt enough i even imported them into the project folder.</p>
  
  <p>Any idea why this problem could be happening?</p>