You need to add the python executable path to your Window’s PATH variable.
- From the desktop, right-click My Computer and click Properties.
- In the System Properties window, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
- Highlight the Path variable in the Systems Variable section and click the Edit
button. - Add the path of your python executable(
c:\Python27\). Each different directory is separated with a
semicolon. (Note: do not put spaces between elements in thePATH. Your addition to thePATHshould read;c:\Python27NOT; C\Python27) - Apply the changes. You might need to restart your system, though simply restarting
cmd.exeshould be sufficient. - Launch cmd and try again. It should work.