首页 > 编程语言 > 详细

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

时间:2019-09-23 11:06:09      阅读:101      评论:0      收藏:0      [点我收藏+]

最简单的解决方案:

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

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

原文:https://www.cnblogs.com/czhao4/p/11570837.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!