Possibly because after python 3.3 intended command is not python, but simply py
Detailed explanation here
And short answer to your question:
check if powershell command py -0p --list-paths finds any versions.
Possibly because after python 3.3 intended command is not python, but simply py
Detailed explanation here
And short answer to your question:
check if powershell command py -0p --list-paths finds any versions.
I am using Windows 11, Python3.10 and Laptop, and Windows Powershell cannot show Python version (command: python --version).
Solution: type Python inside Windows Powershell, it will prompt out Microsoft Store, just click "get", wait to finish the process, then go to Windows Powershell, type "python --version", it can show the Python version.
Or just simply type 'py' instead of 'python' in the PowerShell and hit enter.

You need to add the path to your environment variables:
Control Panel>System and Security>System>Advanced System Settings>Environment Variables
Select edit PATH and append:
C:\Users\lenovo\AppData\Local\Programs\Python\Python36
to the path. Hit apply and ok. After closing and reopening the shell you should be able to type "python" and be in the python shell.
Python not found by command prompt
Python can't find file
bug: Python install is not recognized by Powershell
can't run python in powershell - Stack Overflow
Videos
I have read through some previous posts with the same issue but the solutions are not working for me. Hoping someone can point to my error.
-
Trying to delete Python reference in Windowsapps directory using windows explorer. I get an error message that does not let me delete them.
-
In environmental variables I moved windows apps down below the python line. I still get an error message in Powershell that Python not found.