“python” not recognized as a command

后端 未结 12 2022
粉色の甜心
粉色の甜心 2020-11-22 14:01

I just downloaded and installed Python 2.7.2 to my laptop and I am trying to run some sample programs. My laptop is running Windows XP.

When I open a cmd

12条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 14:37

    Python comes with a small utility that fixes this. From the command line run:

    c:\python27\tools\scripts\win_add2path.py
    

    Make sure you close the command window (with exit or the close button) and open it again.

提交回复
热议问题