pycppinterface see also: https://pybind11.readthedocs.io/en/stable/index.html sudo pip3 install "pybind11[global]" mkdir build cd build cmake .. make source ../venv/bin/activate ./myexe