如何在Windows中将cmthon添加到cmd

sri*_*sar 13 python windows python-3.x

我安装了python 3.1,并且我已将它添加到系统路径中.现在我可以打开"cmd"并键入python来启动python,但每当我尝试使用(shift +右键单击 - >打开命令提示符)在特定目录中打开cmd,并键入python时,它会显示"command not found "!

我怎样才能解决这个问题?

小智 15

右键单击我的电脑>进入属性>高级设置>环境变量>

选择路径并将已安装的python dirtory添加到该路径,如下所示:

C:\窗口\ system32; C:\ WINDOWS; C:\ Python27

  • 是.这正是2年半前的答案所说的. (3认同)

use*_*312 8

您需要在Windows中设置环境变量.