When I try to run a python command in Powershell, I get this error
Program 'python' failed to run: No application is associated with the specified file for this
I have python installed in C:\Users\hp\AppData\Local\Programs\Python\Python35 directory.
I tried adding it with in the system environment variable path and restarted Powershell but get the same error. Also tried doing it via the commands given in other answers, but it doesn't work
pathlooks like?Get-Command python | Select-Object -ExpandProperty Definitionreturned cygwin. I moved Python up in the variables list and it started working.