Sphinx-build无法被识别为内部或外部命令。

4
在Python 2.5上,我使用easy_install安装了sphinx,并在Windows 7上的以下位置可用:
C:\Python25\Lib\site-packages\sphinx-1.0.8-py2.5.egg\sphinx

我想把几个.rst文件转换成HTML。但每当我执行sphinx-build时,都会遇到以下错误:

'sphinx-build' is not recognized as an internal or external command,
operable program or batch file.

我有所遗漏吗?

1个回答

7

sphinx-build 命令应该被安装在 C:\Python25\Scripts 中。你可以使用完整路径 C:\Python25\Scripts\sphinx-build 来调用该命令,或者将该目录添加到你的 PATH 中。


在我的情况下,它位于漫游文件夹中:C:\Users\USERNAME\AppData\Roaming\Python\Python39\Scripts - D.T

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接