为什么 curses 模块没有通过 pip 安装?

Why is the curses module not installing via pip?

我一直在尝试使用命令“pip install windows-curses”安装 curses 模块,但它似乎没有工作,并且错误提示:

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

[编辑:我正在使用 python 3.10]

之后我使用 pip 安装了 requests 包,但安装似乎很完美。所以,pip 工作正常,只是 curses 模块不工作。是我这边的问题还是这个包实际上不可用?

目前 windows-curses 的最新版本是 2.2.0 and it provides wheels for Python 3.6-3.8,没有源代码。

您很可能使用 Python 3.9 或 3.10(您应该在问题中指出)。要使用 windows-curses,您需要降级。您还可以从 https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses

下载轮子