title: Pipreqs: UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1206: character maps to <undefined>
body: <p>When I use <code>pipreqs</code>, I have this problem. I use anaconda and Russian Windows.</p>
  <pre><code>root@DESKTOP-ETLLRI1 C:\Users\root\Desktop\resumes
  $ pipreqs C:\Users\root\Desktop\resumes
  Traceback (most recent call last):
    File &quot;C:\Users\root\Anaconda3\Scripts\pipreqs-script.py&quot;, line 9, in &lt;module&gt;
      sys.exit(main())
    File &quot;C:\Users\root\Anaconda3\lib\site-packages\pipreqs\pipreqs.py&quot;, line 396, in main
      init(args)
    File &quot;C:\Users\root\Anaconda3\lib\site-packages\pipreqs\pipreqs.py&quot;, line 341, in init
      extra_ignore_dirs=extra_ignore_dirs)
    File &quot;C:\Users\root\Anaconda3\lib\site-packages\pipreqs\pipreqs.py&quot;, line 75, in get_all_imports
      contents = f.read()
    File &quot;C:\Users\root\Anaconda3\lib\encodings\cp1251.py&quot;, line 23, in decode
      return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1206: character maps to &lt;undefined&gt;
  </code></pre>