// main.cc #include "pybind11/embed.h" namespace py = pybind11; extern "C" { int main() { py::scoped_interpreter guard{}; auto py_module = py::module::import("numpy"); auto version = py_module.attr("__version__"); py::print(version); return 0; } } Using the following ...