Python.h not found while building sample application with cmake and pybind11
问题 I want to build simple app with pybind11, pybind is already installed in my Ubuntu system with cmake (and make install). I use this simple cmake file: cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(trt_cpp_loader ) find_package(pybind11 REQUIRED) add_executable(trt_cpp_loader main.cpp) set_property(TARGET trt_cpp_loader PROPERTY CXX_STANDARD 11) This is main.cpp: #include <iostream> #include <pybind11/embed.h> namespace py = pybind11; using namespace std; int main(){return 0;} when I