【发布时间】:2013-02-16 17:21:29
【问题描述】:
我正在尝试通过这样的调用在 Windows 中运行 python 程序:
python pacman.py
我对 python 程序有很多这样的调用。我想从 Windows 命令行运行它。当我在 Ubuntu 中运行它时,它运行良好,但是当我在 Windows 中尝试时,我收到以下错误:
'python' is not recognized as an internal or external command, operable program or batch file.
如何从 Windows cmd 运行这些 python 程序?
【问题讨论】:
-
Python 不像 Ubuntu 那样预装在 Windows 上,因此请确保您首先拥有 installed python。
-
Python 已经安装好了,我可以从 IDLE 中按 Run 就可以运行了。