我已经关注了 guide .
$ pip install sphinx sphinx-autobuild
$ pip freeze | grep "sphinx"
sphinx-autobuild==0.6.0
sphinxcontrib-websupport==1.0.0
$ cd docs
$ sphinx-quickstart
$ make html
make html
给出以下错误:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named sphinx
make: *** [help] Error 1
[问]如何防止此错误发生?
感谢您宝贵的时间和帮助。
最佳答案
我遇到了同样的问题,我认为分享我找到的解决方案可能会有所帮助。
打开 Makefile 文件,并更改以下行:
SPHINXBUILD = python -msphinx
给这个:
SPHINXBUILD = python3 -msphinx
关于Python:没有名为 sphinx 错误的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43694823/