To Solve ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' Error You can also Downgrade Werkzeug to 2.0.0 is working fine So you can Just downgrade Werkzeug to 2.0.0 just run this command: pip install Werkzeug==2.0.0 now your error must be solved.