深度阅读

解决AttributeError: module 'jinja2' has no attribute 'contextfilter'

作者
作者
2023年08月22日
更新时间
2.2 分钟
阅读时间
0
阅读量

使用mkdocs构建文档时候遇到如下错误

mkdocs-material==5.1.1
mkdocs==1.1

AttributeError: module ‘jinja2’ has no attribute ‘contextfilter’

出现这种问题主要是因为版本问题,使用固定版本即可。

# requirements.txt
jinja2==3.0.3

相关标签

博客作者

热爱技术,乐于分享,持续学习。专注于Web开发、系统架构设计和人工智能领域。