PyBind11库配置安装过程记录


官方下载源码

PyBind11库配置安装过程记录_hive

源码链接:​​https://github.com/pybind/pybind11​​ 下载

wget https://github.com/pybind/pybind11/archive/refs/heads/master.zip
unzip master.zip

编译并安装源码

新建并进入build文件夹,用于构建

cd pybind11-master
mkdir build
cd build

PyBind11库配置安装过程记录_部署_02

编译源码

cmake ..

PyBind11库配置安装过程记录_编译源码_03

sudo make -j8

PyBind11库配置安装过程记录_github_04

安装

sudo make install

PyBind11库配置安装过程记录_github_05

Talk is cheap. Show me the code