when I am at C:\Python27\python.exe
When I key in: 'cd\' and it appeared: '...'. I key in 'cd python2.7' and it appeared: 'Syntax Error: invalid syntax'.
so I try again.
I key in: 'cd\' and key in: 'python -m pip install -U pip'. It appeared : 'Syntax Error: invalid syntax'.
How should I solve it?
pip command is not a Python syntax :) It’s an executable file. To run it from Python you have to use subprocess module. But for single run see below.
Just run it in cmd.exe console (press Ctrl+R, type cmd.exe, press Enter), not in python.exe:
python -m pip install -U pip
pip install -U pywinauto
or with full path (if you have few Pythons installed):
C:\Python34\Scripts\pip.exe install -U pywinauto