This issue was mentioned here, when building boost.python with numpy.
Everything is ok if python is installed in path without spaces, and it does not find system python (and thereafter numpy) if spaces are present in the path. So attached file can be applied as patch (mb it is not the best fix, but still works, please have a look).
I faced this issue on boost version 1.75.0