After querying, I learned that this is because the module needs to be explicitly imported in the new version of werkzeug.
Add the following code to the error file (here is werkzeug/init.py) to solve the problem.
from werkzeug.utils import cached_property
Remark:
File path under CentOS system: /usr/local/lib/python3. 7 /site-packages/ werkzeug File path under Ubuntu system: /usr/local/lib/python3. 6 /dist-packages/ werkzeug File path under MAC system: /usr/local/lib/python3. 7 /site-packages/werkzeug
end!
Similar Posts:
- [Solved] ImportError: cannot import name pywrap_tensorflow
- Django startup error: generator expression must be parentized
- [Solved] pip install ipython error: ‘ImportError: No module named shutil_get_terminal_size’
- python3 are installed through pip on Win 10, Unicode decodeerror: ‘UTF-8’ codec can’t decode byte
- ImportError: cannot import name’e.g. utils’from’tensorflow.as.utils’ 38382;’ 39064;
- [Solved] “import numpy as np” ImportError: No module named numpy
- [Solved] peewee error: ImportError: No module named ‘MySQLdb’;pymysql error: from . import connections # noqa: E402
- [Solved] SQLAlchemy Error: ImportError: cannot import name ‘TYPE_CHECKING’
- ImportError: No module named pytz
- [Solved] ModuleNotFoundError: No module named’usysconfigdata u x86 64-u-gnu’