在Windows Phon中运行Python脚本

2024-10-01 11:24:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我应该如何使用IronPython在windowsphone7或8中运行python脚本。我尝试了以下几点:

var ipy = Python.CreateRuntime();
dynamic test = ipy.UseFile("Test.py");

但是我得到了一个错误:

^{pr2}$

在测试.py只包含:

print "Hello World"

Tags: pytest脚本hellovar错误dynamicironpython
2条回答

IronPython不支持Windows Phone。但是,您可以使用starcore.Python已为windows phone编译。检查msdn上的this样品。在

IronPython当前稳定版本(2.7.3)的release info声明:

Windows Phone support has been dropped because there were serious issues with the current version, and WP7’s days are numbered. Instead focus will shift to WinRT (“Metro”) which will work in Windows 8 and Window Phone 8.

这意味着,无论存在什么代码(遗留的、正在进行的工作)目前似乎都不受支持。在

相关问题 更多 >