Sphinx-quickstart doesn't work

吃可爱长大的小学妹 提交于 2019-12-06 10:01:33

An alternative way to invoke sphinx-quickstart is to explicitly load Sphinx's quickstart module. For Sphinx v1.7+:

python -m sphinx.cmd.quickstart

For older versions of Sphinx:

python -m sphinx.quickstart

For example:

$ /c/Python35/python -m sphinx.quickstart
Welcome to the Sphinx 1.6.2 quickstart utility.
...
pmjn6

I found the solution in this webpage:

User (root/sudo free) installation of Python modules.

In section 3. Python 2.6+ he mentioned that the command line commands are in

~/local/bin

Although I had put ~/local/lib/python2.7/siste-packages in the path, the ~/local/bin directory was not in the path. So all I did

$export PYTHONPATH=$PYTHONPATH:~/local/bin

and now it works.

I don't know why find $HOME -name sphinx-quickstart did not find sphinx-quickstart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!