pydoc does not work in Windows. at this post Pydoc is not working (Windows XP) the last answer by dave webb says to create a pydoc.bat file with this code in it:
@python c:\Python27\Lib\pydoc.py %*
After I create pydoc.bat where should it be placed so the pydoc command works in the command prompt?
PS adding C:\python27\Lib\pydoc.py to the Windows path in the system environment variables does not work. Even after logging out and back in it does not work.
The
PATHenvironment variable is a list of directories to search for a given executable. So you should be addingC:\python27\Libto yourPATH(not including the filename).As for the
pydoc.batfile you’ve created, one place to put it would be theC:\python27\Scriptsdirectory which is usually added to yourPATHby the python installation (since that folder contains miscellaneous scripts that you might like available at the command line).