【问题标题】:pip install windows-curser displaying errorpip install windows-curser 显示错误
【发布时间】:2020-09-27 14:35:29
【问题描述】:

我想安装curses 来使用Python 做一个菜单制作系统项目。当我尝试在jupyter中导入curses时,我收到一个错误,告诉我没有curser之类的包......所以我尝试使用pip install安装curser。 这是我输入的:

pip install windows-curser

我收到这样写的错误:

ERROR: Could not find a version that satisfies the requirement windows-curser (from versions: none)
ERROR: No matching distribution found for windows-curser

这是我收到的完整错误消息:

【问题讨论】:

标签: python python-curses


【解决方案1】:

您是否对windows-curseswindows-curser 感到困惑?我不知道,但是“curses”是一个通用库,而“curser”我没听说过。

编辑:经过一番搜索,是的,windows-curses 是一个 python 包,但 windows-curser 没有出现在任何地方。我认为这是一个错字。

【讨论】:

    【解决方案2】:

    您不需要安装curses,因为它是标准库的一部分。但不是在 Windows 上。文档说

    Windows 版本的 Python 不包含诅咒模块。有一个名为 UniCurses 的移植版本可用。您也可以试试 Fredrik Lundh 编写的 Console 模块,它不使用与 curses 相同的 API,但提供光标可寻址的文本输出并完全支持鼠标和键盘输入。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-21
      • 2015-07-21
      • 2020-07-21
      • 2018-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多