PyBind11库配置安装过程记录

PyBind11库配置安装过程记录


官方下载源码

源码链接: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

编译源码

cmake ..

sudo make -j8

安装

sudo make install

posted @ 2022-05-09 17:12  Xu_Lin  阅读(249)  评论(0编辑  收藏  举报