I'm learning to program Python from the "Learning Python the Hard Way". On one of the chapters it tells me to use pydoc command. The windows 7 cmd failed miserably with that command.
When I typed in pydoc raw_input()
on cmd following error codes were generated:
'pydoc' is not recognized as internal or external command,
operable program or batch file.
I've looked back previous two questions on same issue:
So far I have created a pydoc.bat with following line
@python c:\Python26\lib\pydoc.py %*
and saved it in C:\python27\Tools\Scripts
.
I've also tried to change the PATH to C:\python27\Lib
. I called the two variables python and pydoc because I'm not really sure I set the PATH correctly.
It's still not working.
What did I do wrong?