【问题标题】:Run python scripts in iOS app在 iOS 应用程序中运行 python 脚本
【发布时间】:2013-02-04 13:11:27
【问题描述】:

我需要在 ios 应用程序中运行 python 脚本。我发现了这个问题run a simple python script in ios 作为回答,他包括 Python.h

#include <Python.h>

我在哪里可以得到这个文件?在哪个库或框架中?编译器说我“找不到 Python.h 文件”

我使用的是 Mac OS X 10.8.2、xCode 4.6 我在 System/Library/Frameworks/Python.framework 中有 Python.framework 和 Python.h

请帮忙

【问题讨论】:

    标签: python ios objective-c xcode cocoa-touch


    【解决方案1】:

    您正在查看的脚本适用于 OS X,而不是 iOS。遗憾的是,iOS 包含 Python 框架。

    【讨论】:

    • 这适用于 iOS 而不是 OS X。iOS 不包含 Python 框架。您指的是 OS X 框架。
    • iOS 不包含 Python,但可以嵌入。 Pythonista 应用程序以某种方式做到了这一点。
    猜你喜欢
    • 1970-01-01
    • 2017-05-03
    • 2012-02-21
    • 1970-01-01
    • 2011-03-16
    • 1970-01-01
    • 1970-01-01
    • 2015-08-17
    • 1970-01-01
    相关资源
    最近更新 更多