python-3.x - 执行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 - PermissionError: [WinError 5] 访问被拒绝
- c# - 将复合类型从 postgresql 映射到 ef core
- go - 漂亮打印与字符串转换的实用方法
- r - 调整后新买卖的价格加权平均值
- java - Java 1.8:该进程无法访问该文件,因为它正被另一个进程使用
- angular - 按 URL 参数过滤的可观察语法?
- git - Git 存储库,限制基于路径的读取访问
- next.js - 为什么使用 useRouter 时我的查询参数不存在?下一个
- php - 如何在 php 电子邮件上显示 php 单选输入值?
- html - 如何从 IE 中未完全预加载 VBA 的下拉列表中选择选项?