flask_cache 报错一下内容:
ImportError: cannot import name 'import_string' from 'werkzeug'
三方库版本:
flask 2.1.2
flask_cache 0.13.1
werkzeug 2.1.2
原因:版本不兼容
解决方法:
编辑flask_cache\__init__.py文件
将
from werkzeug import import_string
改为:
from werkzeug.utils import import_string
完事
此方法不一定适用,仅供参考