Embed py in C++ use pybind11 https://docs.python.org/3/extending/embedding.html /opt/bin/python3.11-config --cflags /opt/bin/python3.11-config --ldflags --embed