【问题标题】:embedded python in c++, do i need python installed在 C++ 中嵌入 python,我需要安装 python
【发布时间】:2013-04-10 13:01:23
【问题描述】:

当使用

将 python 嵌入到 c++ 应用程序中时
#include "python2.6/Python.h"

和链接-lpython2.6

目标计算机(运行最终编译程序的计算机)是否需要安装 python 才能使用我的应用程序?

谢谢

【问题讨论】:

    标签: c++ python static-linking python-embedding


    【解决方案1】:

    这取决于。您是静态链接库还是动态链接库? 如果您动态链接,那么是的,您的目标计算机需要安装 Python。

    【讨论】:

    • 静态或动态链接并不重要,因为您不能静态链接 Python。你可以静态链接解释器和语言核心,但是你仍然需要一堆 Python 模块来获得完整的功能,实际上不可能静态链接整个。
    猜你喜欢
    • 2021-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-05
    • 1970-01-01
    • 2019-07-12
    • 1970-01-01
    • 2018-05-26
    相关资源
    最近更新 更多