gpt4 book ai didi

python - 在 iOS 应用程序中运行 python 脚本

转载 作者:可可西里 更新时间:2023-11-01 05:45:42 27 4
gpt4 key购买 nike

我需要在 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

请帮忙

最佳答案

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

关于python - 在 iOS 应用程序中运行 python 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14687485/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com