When you first install Python, the first command box should ask if you want to "add python to PATH", make sure that box is checked. I had that same error and this fixed it.