Skip to content
Advertisement

How to solve cannot import name ‘abort’ from ‘werkzeug.exceptions’ error while importing Flask

I am getting error while importing flask, error message goes as

ImportError: cannot import name ‘abort’ from ‘werkzeug.exceptions’

here is my full code

JavaScript

Advertisement

Answer

I guess problem was with python 3.8 version. I reinstalled python 3.6 and it worked. I think it will also work fine for python 3.7

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement