Windows: Python 3.7 encountered ImportError: No module named '_curses'

The most simple solution:

pip install windows-curses

problem causes:

Windows platform is not installed curses. Because Python believe this is primarily used on Unix.

The curses module is not supported on Windows machines. From the module documentation:

While curses is most widely used in the Unix environment, versions are available for DOS, OS/2, and possibly other systems as well. This extension module is designed to match the API of ncurses, an open-source curses library hosted on Linux and the BSD variants of Unix.

Install the unofficial windows binary for curses from here and try again.

You can also use the program provided by users:

https://blog.csdn.net/liyaoqing/article/details/54949253

Guess you like

Origin www.cnblogs.com/czhao4/p/11570837.html