Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读这本“Learn python the Hard Way”一书,这本书现在说要运行 'pydoc open' 我这样做并得到 pydoc 不是内部或外部命令等的响应。我正在尝试添加' C:\Python27\lib\pydoc.py' 到 PATH 并重新启动我的计算机,但它仍然没有工作。
Python 可能不在你的路径中。您必须使用 GUI 或类似的方式将其添加到您的路径中:
set PATH = PATH;/path/to/pydoc/
这是一个 Windows 示例,但转换为 *nix 版本应该不难。export在这种情况下可以使用该命令。
export