Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 ironpython 作为脚本运行,而不是将 ironpython 代码编译为可执行文件。有没有办法将 ironpython 作为脚本运行?
是的,解释器安装在 Program Files 文件夹下的 IronPython 子目录中。名字是ipy.exe。因此,如果您的脚本是myscript.py:
ipy.exe
myscript.py
C:> c:\Program Files (x86)\IronPython 2.7.1\ipy.exe" myscript.py
为避免使用完整路径,请在环境变量 PATH 中添加 IronPython 文件夹路径。然后启动cmd并输入
ipy