The 'sphinx-build' command was not found.

Shaun Luttin picture Shaun Luttin · Jun 10, 2016 · Viewed 33.6k times · Source

This was our processes of installing Sphinx.

> choco install python -y -f
> pip install sphinx

We know that sphinx installed because of the following output.

> pip show sphinx
---
Metadata-Version: 2.0
Name: Sphinx
Version: 1.4.3
Summary: Python documentation generator
Home-page: http://sphinx-doc.org/
Author: Georg Brandl
Author-email: [email protected]
License: BSD
Location: c:\programdata\chocolatey\lib\python3\tools\lib\site-packages

We also added its install location to our PATH.

c:\programdata\chocolatey\lib\python3\tools\lib\site-packages

Even so, running sphinx-build does not work.

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

Answer

Symon picture Symon · Jun 9, 2018

I stumbled into that problem too when installed Sphinx using pip. The problem was solved using the installation way proposed by official documentation:

For Python 3:

$ apt-get install python3-sphinx

For Python 2:

$ apt-get install python-sphinx