Answer the question
In order to leave comments, you need to log in
Why is hashlib not installed for python3?
Please tell me why the hashlib library is not installed on python3.6? I am getting the following error message:
(venv) [email protected] ~/python/bottle_auth $ python3 -m pip install hashlib
Collecting hashlib
Using cached https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/kalinin/python/bottle_auth/venv/lib/python3.6/site-packages/setuptools/__init__.py", line 18, in <module>
import setuptools.version
File "/home/kalinin/python/bottle_auth/venv/lib/python3.6/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/kalinin/python/bottle_auth/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 35, in <module>
import email.parser
File "/usr/lib/python3.6/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/usr/lib/python3.6/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/usr/lib/python3.6/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/usr/lib/python3.6/email/utils.py", line 28, in <module>
import random
File "/home/kalinin/python/bottle_auth/venv/lib/python3.6/random.py", line 46, in <module>
from hashlib import sha512 as _sha512
File "/tmp/pip-install-vuwlvg1f/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vuwlvg1f/hashlib/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question