首页 > 解决方案 > 执行python代码时如何在PowerShell中修复“CommandNotFoundException”?

问题描述

我在 Udemy 上开始了 Python 基础课程,并按照说明在 PowerShell 中执行了第一个 start.py 代码。我在与start.py.

PS C:\Users\burigs\Desktop\Desktop\Programming\Python\IntroToProgramming> python .\start.py
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python .\start.py
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

标签: python-3.xpowershell

解决方案


推荐阅读