2

のインストールncursesで問題が発生していPython3ます。通常sudo apt-get install ncurses-devの. Python2_Python3

ImportError: No module named curses

ncursesで働くにはどうすればよいPython3ですか?

4

2 に答える 2

2

これを試して:

import curses

curses は ncurses です。Pythonにも組み込まれているため、インストールする必要はありません。

Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-65-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Mon Oct 19 19:06:03 2015 from xxx.xxx.xxx.xxx
me@ubuntu:~$ python3
Python 3.4.0 (default, Jun 19 2015, 14:20:21) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
>>> 
于 2015-10-21T23:41:43.887 に答える