Can't run Python from cmd line

后端 未结 6 1439
無奈伤痛
無奈伤痛 2020-12-21 02:11

I am a programming (and Python) novice. I am unable to run any python script in command prompt of my WinXP 64-bit laptop. I assigned the path and confirmed it by typing set

6条回答
  •  無奈伤痛
    2020-12-21 02:35

    You are typing the command inside the Python shell, do it from the DOS prompt.

    I.e.,

     C:\somepath\> python hello.py
    

    since you already have the python executable on the path (the number 1 problem usually when things don't work), you should be set to go.

提交回复
热议问题