How to get pydoc command working in Windows?(如何让 pydoc 命令在 Windows 中工作?)
问题描述
pydoc
在 Windows 中不起作用.在这篇文章 Pydoc is not working (Windows XP) dave 的最后回答webb 说要创建一个 pydoc.bat 文件,其中包含以下代码:
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:Python27Libpydoc.py %*
创建 pydoc.bat 后,应该将其放置在何处以便 pydoc
命令在命令提示符下工作?
After I create pydoc.bat where should it be placed so the pydoc
command works in the command prompt?
PS 将 C:python27Libpydoc.py
添加到系统环境变量中的 Windows 路径不起作用.即使在注销并重新登录后它也不起作用.
PS adding C:python27Libpydoc.py
to the Windows path in the system environment variables does not work. Even after logging out and back in it does not work.
推荐答案
PS 将 C:python27Libpydoc.py 添加到系统环境变量中的 Windows 路径不起作用.即使在注销并重新登录后它也不起作用.
PS adding C:python27Libpydoc.py to the Windows path in the system environment variables does not work. Even after logging out and back in it does not work.
PATH
环境变量是一个目录 列表,用于搜索给定的可执行文件.所以你应该将 C:python27Lib
添加到你的 PATH
中(不包括 filename).
The PATH
environment variable is a list of directories to search for a given executable. So you should be adding C:python27Lib
to your PATH
(not including the filename).
至于您创建的 pydoc.bat
文件,放置它的一个地方是通常添加到您的 C:python27Scripts
目录PATH
由 python 安装(因为该文件夹包含您可能希望在命令行中可用的其他脚本).
As for the pydoc.bat
file you've created, one place to put it would be the C:python27Scripts
directory which is usually added to your PATH
by the python installation (since that folder contains miscellaneous scripts that you might like available at the command line).
这篇关于如何让 pydoc 命令在 Windows 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何让 pydoc 命令在 Windows 中工作?


基础教程推荐
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01