[Tutor] 'pydoc' is not recognized as an internal or external command, ...

Jerry Hill malaclypse2 at gmail.com
Sat Nov 13 00:56:08 CET 2010


On Fri, Nov 12, 2010 at 6:44 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Use the Find File command, and see if you can find something called "pydoc".
> You may need to call the full path to the program, e.g.:
>
> C:\My Documents\path\to\program\pydoc raw_input

On my windows PC, it's c:\Python31\Lib\pydoc.py

So, to do what the tutorial is suggesting, you would need to open a
command prompt (cmd.exe) and run:
c:\Python31\Lib\pydoc.py raw_input

Note: Since I have python 3.1 installed, that wouldn't actually work,
because python 3.1 no longer has a raw_input function -- it's been
renamed to just input.

If you want to be able to run pydoc.py without specifying the full
path every time, I could add C:\Python31\Lib to my PATH environment
variable.

-- 
Jerry


More information about the Tutor mailing list