从一个c ++程序调用python进行分发 [英] Calling python from a c++ program for distribution

查看:110
本文介绍了从一个c ++程序调用python进行分发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的c ++程序调用python脚本文件。

I would like to call python script files from my c++ program.

我不知道我会分发给谁的人会安装python。

I am not sure that the people I will distribute to will have python installed.

寻找一个.lib文件,我可以使用它有一个Apache像分发许可证。

Basically I'm looking for a .lib file that I can use that has an Apache like distribution license.

推荐答案

Boost有一个python接口库可以帮助你。

Boost has a python interface library which could help you.

Boost.Python

这篇关于从一个c ++程序调用python进行分发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆