python - 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 上运行...
解决方案
好的... WTF ...我不知道它是如何工作的,但我跑了
brew 删除 sphinx-doc
并且“制作html”有效,
如果有人可以回答为什么以及如何发生这种情况,请告诉我...
推荐阅读
- java - 如何在不使用 Java 中的数组或字符串的情况下读取和输出字符?
- typescript - Vue - TypeScript - SFC - 未定义属性或方法
- amazon-web-services - OpenVINO 可以与 AWS Lambda 一起使用吗?
- php - 查询不保存数据到数据库
- python - 出现错误:FileNotFoundError:[Errno 2] 尽管文件在位置可用,但 spyder 中没有这样的文件或目录
- python - 使用 tf.keras 中实现的自定义指标加载 keras 模型
- javascript - 如何解决 npm ERR!使用 datepicker 时 vuejs 中的代码 E404
- java - 如何修复 org.hibernate.WrongClassException?
- node.js - 你能帮我吗?-firebase-function-onUpdate
- python - PyCharm中的“等待”语句结束预期语法错误