首页 > 解决方案 > Python3.6 No module named '_curses'

问题描述

I'm running Ubuntu 14.04 and just installed Python3.6 manually (downloading the tar file). I already have Python2.7 and Python3.4 with Python2.7 the default one. With Python3.6, everything seems to be OK except when I run

import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/curses/__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

Running

sudo apt-get install libncurses-dev
sudo apt-get install libncursesw5-dev 

did not work and neither did

pip3.6 install libncurses-dev

How do I install the curses module in python3.6?

标签: ubuntu-14.04python-3.6python-curses

解决方案


推荐阅读