“python” not recognized as a command

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

    in PowerShell enter this:

    [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")

    Close PowerShell and then start it again to make sure Python now runs. If it doesn’t, restart may be required.

提交回复
热议问题