Getting a "AttributeError: module 'hashlib' has no attribute 'scrypt'" during the tutorial #5325
Unanswered
SethBashamDev
asked this question in
Q&A
Replies: 2 comments 11 replies
-
What version of Python are you using and where did you install it from? scrypt is available in all supported builds of Python. https://docs.python.org/3/library/hashlib.html#hashlib.scrypt note the docs say it was added in 3.6. |
Beta Was this translation helpful? Give feedback.
11 replies
-
我不确定这是不是Werkzeug的某个版本导致的问题。 generate_password_hash(password)的 default method变成了scrypt。 我是在调用generate_password_hash(password,method='pbkdf2')时显示的制定method为pbkdf2来解决的此问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My code matches 1 for 1; followed the tutorial to the T and I am getting the error posted in the title. Can't seem to get an answer anywhere.
Beta Was this translation helpful? Give feedback.
All reactions