Python 3.7.3,win10,没有名为“_curses”的模块

Python 3.7.3, win10, No module named '_curses'

这是我第一次尝试使用 curses,在使用 python -m pip install windows-curses 成功安装它之后(重新运行此代码得到 Requirement already satisfied: windows-curses in c:\python\python37-32\lib\site-packages (2.1.0))。

我运行示例代码:

import curses
import time

screen = curses.initscr()
screen.clear()
time.sleep(3)

并得到错误:

ModuleNotFoundError                       Traceback (most recent call last)
c:\Users\Cris\Desktop\test.py in 
----> 1 import curses
      2 import time
      3 screen = curses.initscr()
      4 screen.clear()
      5 time.sleep(3)

~\Anaconda3\lib\curses\__init__.py in 
     11 """
     12 
---> 13 from _curses import *
     14 import os as _os
     15 import sys as _sys

ModuleNotFoundError: No module named '_curses'

说 curses 没有安装...?

我 运行 使用 VSC 的 Python 交互选项卡 (shift+enter),只需 运行 它通过 VSC 给出:

LINES value must be >= 2 and <= 132: got 13682
initscr(): Unable to create SP

Python for Windows doesn't come with curses.go to curses, 下载与您的 Windows 和版本相对应的 curses 版本Python,然后用python

pip install whl文件