【发布时间】:2020-03-13 16:25:15
【问题描述】:
当我尝试在 Powershell 中运行 python 命令时,我收到此错误
Program 'python' failed to run: No application is associated with the specified file for this
我在C:\Users\hp\AppData\Local\Programs\Python\Python35 目录中安装了python。
我尝试在系统环境变量路径中添加它并重新启动 Powershell 但得到相同的错误。也尝试通过其他答案中给出的命令进行操作,但它不起作用
【问题讨论】:
-
您能展示一下您的
path的样子吗? -
@DuarteCastanho 谢谢!
Get-Command python | Select-Object -ExpandProperty Definition返回 cygwin。我将 Python 在变量列表中上移,它开始工作了。
标签: python powershell