“python” not recognized as a command

后端 未结 12 1878
粉色の甜心
粉色の甜心 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:52

    Just another clarification for those starting out. When you add C:\PythonXX to your path, make sure there are NO SPACES between variables e.g.

    This:

    SomeOtherDirectory;C:\Python27

    Not this:

    SomeOtherDirectory; C:\Python27

    That took me a good 15 minutes of headache to figure out (I'm on windows 7, might be OS dependent). Happy coding.

提交回复
热议问题