title: Failed to install hashlib, python 3, debian
body: <p>The software fails to install. Any help in resolving this would be appreciated. </p>
  
  <p>I believe that the error is probably a dependency error. </p>
  
  <pre><code>             Running setup.py (path:/tmp/pip-build-9rlb94_r/hashlib/setup.py) egg_info for package hashlib
              Traceback (most recent call last):
                File "&lt;string&gt;", line 3, in &lt;module&gt;
                File "/usr/local/lib/python3.4/dist-packages/setuptools/__init__.py", line 10, in &lt;module&gt;
                  from setuptools.extern.six.moves import filter, map
                File "/usr/local/lib/python3.4/dist-packages/setuptools/extern/__init__.py", line 1, in &lt;module&gt;
                  from pkg_resources.extern import VendorImporter
                File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 36, in &lt;module&gt;
                  import email.parser
                File "/usr/lib/python3.4/email/parser.py", line 12, in &lt;module&gt;
                  from email.feedparser import FeedParser, BytesFeedParser
                File "/usr/lib/python3.4/email/feedparser.py", line 27, in &lt;module&gt;
                  from email import message
                File "/usr/lib/python3.4/email/message.py", line 16, in &lt;module&gt;
                  from email import utils
                File "/usr/lib/python3.4/email/utils.py", line 28, in &lt;module&gt;
                  import random
                File "/usr/lib/python3.4/random.py", line 45, in &lt;module&gt;
                  from hashlib import sha512 as _sha512
                File "/tmp/pip-build-9rlb94_r/hashlib/hashlib.py", line 80
                  raise ValueError, "unsupported hash type"
                                  ^
              SyntaxError: invalid syntax
              Complete output from command python setup.py egg_info:
              Traceback (most recent call last):
  
            File "&lt;string&gt;", line 3, in &lt;module&gt;
  
            File "/usr/local/lib/python3.4/dist-packages/setuptools/__init__.py", line 10, in &lt;module&gt;
  
              from setuptools.extern.six.moves import filter, map
  
            File "/usr/local/lib/python3.4/dist-packages/setuptools/extern/__init__.py", line 1, in &lt;module&gt;
  
              from pkg_resources.extern import VendorImporter
  
            File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 36, in &lt;module&gt;
  
              import email.parser
  
            File "/usr/lib/python3.4/email/parser.py", line 12, in &lt;module&gt;
  
              from email.feedparser import FeedParser, BytesFeedParser
  
            File "/usr/lib/python3.4/email/feedparser.py", line 27, in &lt;module&gt;
  
              from email import message
  
            File "/usr/lib/python3.4/email/message.py", line 16, in &lt;module&gt;
  
              from email import utils
  
            File "/usr/lib/python3.4/email/utils.py", line 28, in &lt;module&gt;
  
              import random
  
            File "/usr/lib/python3.4/random.py", line 45, in &lt;module&gt;
  
              from hashlib import sha512 as _sha512
  
            File "/tmp/pip-build-9rlb94_r/hashlib/hashlib.py", line 80
  
              raise ValueError, "unsupported hash type"
  
                              ^
  
          SyntaxError: invalid syntax
  
          ----------------------------------------
  </code></pre>
  
  <p>I am using this library to generate hashes for files and so alternative solutions would also be welcome.</p>