I just downloaded and installed Python 2.7.2 to my laptop and I am trying to run some sample programs. My laptop is running Windows XP.
When I open a cmd window and type python I get:
'python' is not recognized as an internal or external command, operable program or batch file.
I am not a Windows person (mostly mainframes). However I am guessing that there is some command that I need to execute to define python as a command. Can anyone tell me what that command is?
The installer placed Python at C:\Python27\.
Prior to Windows 10 and Python 3.7, this problem would cause Python not to be found at all. However, nowadays on up-to-date systems, it will instead result in an offer from Microsoft to install Python from the Microsoft Store.
Users who already installed Python themselves from python.org ordinarily should not also get the Microsoft version; the offer is made to try to help users who are not computer-literate enough to do it themselves, and there can be conflicts between how the two versions are set up. At best, it is redundant and normally not useful.
Please see CMD opens Windows Store when I type 'python' for details on the up-to-date version of the problem.





pipbut contains more answers and more up to date information for Python 3.Program Files(or a user-specific folder for user installs), it can't work the same way.