C:\Users\Administrator\Desktop\item\code_serv\documents\api>make html Running Sphinx v1.6.2 loading pickled environment... failed:
Can't get attribute 'WarningStream' on
<module 'sphinx.util.nodes' from 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36-32\\lib\\site-packages\\sphinx\\util\\nodes.py'>
主题错误:
sphinx_rtd_theme is no longer a hard dependency since
version 1.4.0
. Please install it manually.(pip install sphinx_rtd_theme
)
我该如何解决?
最佳答案
我发现了另一个问题,我安装了两个 sphinx,一个是通过 pip
安装的,另一个是通过 brew
安装的。删除一个(我选择删除通过 brew
完成的安装)解决了这个问题。
brew remove sphinx-doc
如果还是不行,请尝试卸载并重新安装
pip3 uninstall sphinx sphinx_rtd_theme
pip3 install sphinx sphinx_rtd_theme
关于python - sphinx_rtd_theme 从 1.4.0 版本开始不再是硬依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44940890/