本文首发于个人博客https://kezunlin.me/post/a41adc1/,欢迎阅读!
Interfacing C and Python with pybind11 on ubuntu 16.04
Series
- Part 1: Interfacing C and Python with pybind11 on windows 10
- Part 2: Interfacing C and Python with pybind11 on ubuntu 16.04
Guide
requirements:
- pybind11 v2.3.dev0
- python 3.5
install pytest
pip3 install pytest
compile
git clone https://git

在Ubuntu 16.04上,通过Pybind11实现C++和Python的互调用。首先确保安装了pybind11 v2.3.dev0及Python 3.5,然后进行pytest的安装和编译。文章提供了CMakeLists.txt配置示例,并讲解了如何进行编译和安装。最后介绍了如何在项目中使用Pybind11。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



