Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

356
Views
ImportError: cannot import name 'generate_password_hash'
from flask import jsonify
from flask import flash, request
from werkzeug import generate_password_hash, check_password_hash

Error Please help me to fix these issues I have tried with pip install Werkzeug But not working

Traceback (most recent call last): File "server.py", line 6, in from werkzeug import generate_password_hash, check_password_hash ImportError: cannot import name 'generate_password_hash'

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Those functions were deprecated for a while and now they are moved to werkzeug.security


DeprecationWarning: The import 'werkzeug.generate_password_hash' is deprecated and will be removed in Werkzeug 1.0. Use 'from werkzeug.security import generate_password_hash' instead.
  from werkzeug import generate_password_hash, check_password_hash
DeprecationWarning: The import 'werkzeug.check_password_hash' is deprecated and will be removed in Werkzeug 1.0. Use 'from werkzeug.security import check_password_hash' instead.
  from werkzeug import generate_password_hash, check_password_hash
over 4 years ago · Santiago Trujillo Report

0

You can try

from werkzeug.security import generate_password_hash, check_password_hash

or check the version of werkzeug installed in your system. Those functions are available for version 1.0.x

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!