4

On Python 2.5, I installed sphinx using easy_install and it is available at the following location on Windows 7:

C:\Python25\Lib\site-packages\sphinx-1.0.8-py2.5.egg\sphinx

I wanted to convert a couple of .rst files to HTML. But whenever I do sphinx-build I encounter the following error:

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

Am I missing something?

Petr Viktorin
  • 65,510
  • 9
  • 81
  • 81
Tarun
  • 3,456
  • 10
  • 48
  • 82

1 Answers1

7

The sphinx-build command should be installed in C:\Python25\Scripts. Either use the full path, C:\Python25\Scripts\sphinx-build, to call the command, or add that directory to your PATH.

Petr Viktorin
  • 65,510
  • 9
  • 81
  • 81
  • In my case, it is in roaming folder: `C:\Users\USERNAME\AppData\Roaming\Python\Python39\Scripts` – D.T Dec 27 '20 at 03:24