For building the documentation, certain dependencies have to be installed and a user-config.jam has to be generated in the home directory.
See Quickbook documentation for details.
In addition, b2 needs to be configured with Python support.
See b2 documentation