Can't run Python from cmd line

后端 未结 6 1443
無奈伤痛
無奈伤痛 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:33

    Do it like this:

    Go the directory(python32 in my example) and type python hello.py.

    If you only type python in cmd then it'll launch the python interpreter after that python hello.py will return Syntax error.

    enter image description here

提交回复
热议问题