close

[Solved] Flask app wont launch ‘ImportError: cannot import name ‘cached_property’ from ‘werkzeug’ ‘

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Flask app wont launch ‘ImportError: cannot import name ‘cached_property’ from ‘werkzeug’ ‘ in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Flask app wont launch ‘ImportError: cannot import name ‘cached_property’ from ‘werkzeug’ ‘ Error Occurs?

Today I get the following error Flask app wont launch ‘ImportError: cannot import name ‘cached_property’ from ‘werkzeug’ ‘ in Python.

How To Solve Flask app wont launch ‘ImportError: cannot import name ‘cached_property’ from ‘werkzeug’ ‘ Error ?

  1. How To Solve Flask app wont launch 'ImportError: cannot import name 'cached_property' from 'werkzeug' ' Error ?

    To Solve Flask app wont launch 'ImportError: cannot import name 'cached_property' from 'werkzeug' ' Error try: from werkzeug.utils import cached_property

Solution 1


Try:

from werkzeug.utils import cached_property

Solution 2

Downgrading to Werkzeug==0.16.1 solves this

see https://github.com/noirbizarre/flask-restplus/issues/777#issuecomment-583235327

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment