ubuntu-14.04 - 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?
解决方案
推荐阅读
- java - 如何找到不再需要的@SuppressFBWarnings 注释?
- android - 在 Android 上使用 Google Smartlock 时的自定义对话框
- reactjs - 网络请求失败时如何显示警报?
- transactions - 在 JMETER 中 - 如何在每个单独的请求级别实现 TPS 以进行 API 测试
- jasper-reports - 有没有办法将字段的值与 jasperReport 表达式编辑器中的参数值进行比较?
- cdn - 我应该在每个应用程序中还是在 api 网关中管理我的缓存控制标头?
- fonts - 将字体转换为多边形
- amazon-web-services - 如何递归删除 AWS Cloudwatch 日志流?
- azure-iot-hub - Iothub 消息路由到不同的 Azure 存储 Blob
- firemonkey - 数组的运行时分配 (C++, FMX)