Python Sphinx build无法识别为内部或外部命令

Python Sphinx build无法识别为内部或外部命令,python,windows,python-sphinx,easy-install,Python,Windows,Python Sphinx,Easy Install,在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

在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.

我遗漏了什么吗?

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

在我的例子中,它位于漫游文件夹中:
C:\Users\USERNAME\AppData\roaming\Python39\Scripts