Run python source file from PowerShell

前端 未结 6 424
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 16:28

I\'m trying to learn python but have some problem running source files from power shell. When I type \'python\' it opens up and I can type python commands directly in the sh

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 16:53

    Try to type this in Powershell:

    $env:path="$env:Path;C:\Python33
    

    After this, command

    python yourfile.py
    

    should work.

提交回复
热议问题