Python install issue on windows 10

So I installed python for the first time today but cmd was not able to pick it. cmd gave python not found error. Tried a lot of tips from google and it didn’t help. Someone said that windows was forcing the install from windows store so I tried that. Again didn’t work
But when I reinstalled it from the setup I downloaded previously of the latest release it worked. I ran the setup as an administrator this time though.

Does anyone know why did this happen. We have a python course this semester and my friends are probably going to ask me to install python on their PCs. It would be helpful to know.
Thanks in advance.

Please use the py command place of python and that should work.

See 4. Using Python on Windows — Python 3.12.1 documentation for lots of useful info on using python on the Windows OS.

1 Like

Thank you very much.