【问题标题】:Could not import extension sphinx_panels无法导入扩展 sphinx_panels
【发布时间】:2022-06-18 21:04:14
【问题描述】:

尝试在第一个 (reStructuredText) 中使用 sphinx_panels 时,我遇到了错误 Could not import extension sphinx_panels

我添加了extension in the conf.py file 中提到的docs 仍然面临问题

我什至尝试重新安装但没有帮助,谁能告诉我如何解决这个问题

【问题讨论】:

  • 我不知道,但是自述文件的顶部说“????这个存储库没有被积极维护。请改用 sphinx-design!有关更多信息,请参阅迁移指南和这个 github 问题.????”

标签: python-sphinx restructuredtext


【解决方案1】:

您的 sphinx 版本 (2.0.1) 太旧,SphinxPostTransform 是在 2.1.0 中引入的。

更新日志:https://www.sphinx-doc.org/en/master/changes.html#release-2-1-0-released-jun-02-2019

添加一个帮助类 sphinx.transforms.post_transforms.SphinxPostTransform

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-03
    • 1970-01-01
    • 1970-01-01
    • 2019-07-17
    • 2020-08-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多