How to get pydoc command working in Windows?

2020-05-25 08:03发布

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.

7条回答
Evening l夕情丶
2楼-- · 2020-05-25 08:37

put it in any folder that is in your PATH. Example: C:\Windows\System32

Alternatively, you can put it anywhere, and then add the folder it is in to windows PATH

查看更多
登录 后发表回答