Windows:Python 3.7 中遇到 ImportError: No module named '_curses'

最简单的解决方案:

pip install windows-curses

问题原因:

Windows 平台没有安装curses。因为Python认为该功能主要在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.

也可以使用网友提供的方案:

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

猜你喜欢

转载自www.cnblogs.com/czhao4/p/11570837.html