【问题标题】:Error when using Python's help() utility in CMD ('more' is not recognized) [duplicate]在 CMD 中使用 Python 的 help() 实用程序时出错(无法识别“更多”)[重复]
【发布时间】:2020-03-18 23:02:34
【问题描述】:

好的,所以我尝试使用 Python 的help 函数,但每次我输入一些东西(例如help(list.append))我都会收到这个错误:

'more' is not recognized as an internal or external command, operable program or batch file.

如果我以管理员身份启动 CMD,它就可以工作,否则就不行。 我查看了 more 所做的事情,它与 Python 一次显示一页而不是一次显示文档有关。 我可以以某种方式禁用它,或者为非管理员 CMD 窗口启用 more 吗?

【问题讨论】:

    标签: python-3.x cmd


    【解决方案1】:

    Python 使用 more 程序来显示帮助文本。它说它找不到更多的程序。它应该位于 C:\Windows\System32\more.com。您需要在 PATH 环境变量中包含 C:\Windows\System32。

    answered back in 2011 by rob mayoff

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-12
      • 2014-02-26
      • 1970-01-01
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      • 2021-10-04
      相关资源
      最近更新 更多