解决的思路应该是降低jinja2的版本,不是用最新的。先卸载已经安装的jinja2:pip uninstall jinja2安装 2.11.3版本(目前已知该版本有‘Markup’模块):pip install jinja2==2.11.3
有帮助的话,请点采纳该答案~