Calling python from a c++ program for distribution

前端 未结 6 2247
北海茫月
北海茫月 2020-11-28 02:47

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

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

Basically I\'m

6条回答
  •  心在旅途
    2020-11-28 03:01

    Boost is probably the best choice, however if you're wanting something that's more standalone, and if this is for use with Windows (which seems feasible given that they are the people least likely to have Python installed), then you can use py2exe to create a DLL with entry points suitable for COM objects. You can then interface with the library via COM. (Obviously this is not at all useful as a cross-platform solution).

提交回复
热议问题