Flask 项目中运行报错解决:DeprecationWarning: ‘jinja2.Markup’ is deprecated and will be removed in Jinja 3.1. Import ‘markupsafe.Markup’ instead.
return Markup(c.render_embed())
![image.png](https://img-blog.csdnimg.cn/img_convert/06440b9cfe5b4f54503d8bd28f93d1d3.png)
解决方法:
将 Flask
应用程序升级到最新版本-2.0.0
能解决不
pip install Flask ignore-installed
![image.png](https://img-blog.csdnimg.cn/img_convert/2e0a7283492bf0e69baf3f1ee7e62877.png)
![image.png](https://img-blog.csdnimg.cn/img_convert/4850ef5a9909cdbd75d69b5e246c64e8.png)
查看flask版本:
![image.png](https://img-blog.csdnimg.cn/img_convert/9acbfc222c689cd4f7aa2ba9a827ebaa.png)
运行发现还是报这个弃用错误,看看是不