# testPyBind11 **Repository Path**: shuinan/test-pybind11 ## Basic Information - **Project Name**: testPyBind11 - **Description**: 测试c++通过pybind11调用python - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-12 - **Last Updated**: 2025-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 使用pybind11 调用python 安装: sudo apt install python3-pybind11 sudo apt search pybind11-dev 使用: python3-config --ldflags ,查python的版本 编译: g++ -std=c++17 -O3 -Wall $(python3 -m pybind11 --includes) main.cpp -o example $(python3-config --ldflags) -lpython3.12