Powershell Python: Change version used

后端 未结 2 770
臣服心动
臣服心动 2020-12-07 03:06

I\'m using windows xp.

I\'m trying to use Python in powershell. On my computer I have both Python 3.3 and 2.7 installed. I\'m trying to run 2.7 but whenever I type \

2条回答
  •  余生分开走
    2020-12-07 03:32

    In powershell, enter the following:

    $Env:PY_PYTHON = 2
    

    Then try using the command "py". It should start up Python 2.7. If you ever want to run Python 3.3 again, "py -3" will do the trick.

提交回复
热议问题