“python” not recognized as a command

后端 未结 12 2041
粉色の甜心
粉色の甜心 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条回答
  •  猫巷女王i
    2020-11-22 14:53

    I had the same problem for a long time. I just managed to resolve it.

    So, you need to select your Path, like the others said above. What I did:

    Open a command window. Write set path=C:\Python24 (put the location and the version for your python). Now type python, It should work.

    The annoying part with this is that you have to type it every time you open the CMD.

    I tried to do the permanent one (with the changes in the Environmental variables) but for me its not working.

提交回复
热议问题