1👍
✅
The problem is probably that your OS could not recognize where python.exe is located. To solve this you should add python path to the system’s variable ‘path’.
To do this for win 7 open my computer’s properties > advanced system settings > environment variables > select ‘path’ > click edit > add to the path location of python.
Another option as says Python installation guide is run following shell:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
Or you can just change current folder to the folder where Python was installed using windows command cd. For example:
cd c:\Python
After that python --version
should work.
Source:stackexchange.com