首页 > 解决方案 > sphinx 找不到 sphinx_rtd_theme

问题描述

我是狮身人面像的新手,

我尝试在 conf.py 中使用 html_theme = 'sphinx_rtd_theme'

但是当我运行“make html”时,我收到以下消息:

sphinx_rtd_theme 自 1.4.0 版以来不再是硬依赖。请手动安装。(pip install sphinx_rtd_theme)

我已经用 pip install sphinx_rtd_them 安装了它
(pip列表的一部分)

包版本


雪花石膏 0.7.11
sphinx-rtd-theme 0.4.1
狮身人面像 1.8.1

我还用 brew 安装了 sphinx-doc。

有同样问题的人吗??

要知道的另一件事是...我的 ubuntu PC 可以完美运行,
但不能在 Macbook pro 上运行...

标签: pythonpython-sphinx

解决方案


好的... WTF ...我不知道它是如何工作的,但我跑了

brew 删除 sphinx-doc

并且“制作html”有效,

如果有人可以回答为什么以及如何发生这种情况,请告诉我...


推荐阅读