''Python' is not recognized as an internal or external command Error when trying do run python commands

I am trying to run a python file and I get the error: 'Python' is not recognized as an internal or external command, operable program or batch file. I know there have been questions like this one before but even after reading the answers, I was not able to resolve this issue. I have included a screenshot of my environment variables, but it already has C:\Python34\Scripts. I have also tried modifying the python file to include PATH, but nothing changed. When I manually look for the Python 3.10 file, I find the file path C:\Users\faiqf\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.10. I'm not sure if it has been installed in the wrong place. Any help would be appreciated.

enter image description here

Result of echo %PATH% are C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin;C:\Program Files\AdoptOpenJDK\jre-11.0.11.9-hotspot\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin;C:\Program Files\AdoptOpenJDK\jre-11.0.11.9-hotspot\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Users\faiqf\AppData\Local\Microsoft\WindowsApps;C:\Users\faiqf\AppData\Roaming\npm;C:\Users\faiqf\AppData\Local\atom\bin;C:\Python34\Scripts;



Solution 1:[1]

You have to disable shortcut setting under the "Manage App Execution Aliases"

Solution 2:[2]

You used the wrong path location for python 3.10. By default, Python 3.10 is installed in this folder C:\Users\Username\AppData\lacal\Programs\Python\Python310\ on windows. Add the following to your env path C:\Users\faiqf\AppData\lacal\Programs\Python\Python310\Scripts, then close your command line and open another one. You can now use python or py.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 maytemur
Solution 2