python - 无法从 DOS 提示符启动 IronPython 解释器

标签 python

这是我的路径变量的输出:

我跑:

U:\>echo %path%

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN 卡;C:\Program Files\Intel\DMIX;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\SecureCRT 3.0;C:\Program Files\Git\cmd;C :\Program Files\jZip;C:\Program Files\Perforce;C:\Program Files\IronPython 2.6 for .NET 4.0

我得到的只是这个:

U:\>python
'python' is not recognized as an
operable program or batch file.

最佳答案

命令行调用没有魔法(或几乎没有)

它采用路径变量中的不同文件,这里有用的是C:\Program Files\IronPython 2.6 for .NET 4.0并调用任何.exe或.bat。

通过查看C:\Program Files\IronPython 2.6 for .NET 4.0,您应该能够找到为您启用的程序

显然 IronPython 有 ipy.exe 而不是 python.exe

关于python - 无法从 DOS 提示符启动 IronPython 解释器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5596932/

相关文章:

python - 如何更改 Atom 使用的默认 Python 版本?

python - 如何使用 Pandas 分析来分析大型数据集?

python - 更改 DataFrame 的形状以进行分组

javascript - 访问从 javascript 函数 webdriver 动态生成的 href

python - NoReverseMatch at/login - LOGIN_URL 或反向功能出错?

python - 在哪里导入模块

Python - 如何从字符串中提取地址或如何在不同行的内容之前获取单词?

Python AES解密具有不同字符的字符串结尾

python - 变量作用域(Python 新手)

python - 如何使用 xmltodict 从 xml 文件中获取项目