打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
import readline,ImportError: No module named readline

I was the first time to download the source of Android, but when I used repo init according to the website http://source.android.com/source/downloading.html, something wrong happened, I have faced with this error:

Traceback (most recent call last):  File "/root/bin/repo", line 91, in <module>    import readlineImportError: No module named readline

I am using Ubuntu 10.04 and Python 2.7.2

I will be appreciated if anybody can help me.

asked Feb 28 '12 at 6:43
enterzhu
2515

2 Answers

up vote 3 down vote accepted

AFAIK, the default Python environment in Ubuntu 10.04 is Python 2.6.5, so you must be using a self-compiled python.

You should be missing some readline header files when building your python 2.7.2, so you have two choices now:

  1. Re-compile your python, with libreadline?-dev installed.
  2. Install the standalone version of readline, using pip install readline or easy_install readline
answered Feb 28 '12 at 6:52
Felix Yan
4,60142648
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
 ImportError: No module named _tkinter, please install the python-tk package
明明已经安装了某个模块,python报错:ImportError: No module named ***
ImportError: No module named pkg
aukit:ImportError: No module named 'pyaudio'
Python模块以及导入出现ImportError: No module named ''''xxx''''的问题
python模块以及导入出现ImportError: No module named 'xxx'问题...
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服