我是 Flask 和 Babel 的新手,我刚刚启动了一个包含多种语言的项目。生成 babel.cfg 文件后,当我尝试使用命令提取它时pybabel extract -F babel.cfg -o messages.pot .,出现AttributeError: module 'jinja2.ext' has no attribute 'autoescape' 错误。
pybabel extract -F babel.cfg -o messages.pot .
AttributeError: module 'jinja2.ext' has no attribute 'autoescape'
此错误的原因可能是什么以及如何修复它?
谢谢
python flask python-babel
flask ×1
python ×1
python-babel ×1