最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ImportError: No module named readline错误解决办法
时间:2016-09-24 编辑:简简单单 来源:一聚教程网
python版本是2.7.5,系统为centos7.x系列
错误代码:
[root@Shell site-packages]# python
Python 2.7.5 (default, Mar 18 2016, 16:51:30)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tab
Traceback (most recent call last):
File "
File "tab.py", line 4, in
import readline
ImportError: No module named readline
解决方法:
[root@Shell site-packages]# cd /byrd/tools/
[root@Shell tools]# wget http://newcenturycomputers.net/projects/download.cgi/Readline-1.7.zip
[root@Shell tools]# unzip Readline-1.7.zip
[root@Shell tools]# cd Readline-1.7
[root@Shell Readline-1.7]# python setup.py build
[root@Shell Readline-1.7]# python setup.py install
相关文章
- win11内核隔离和内存完整性介绍 10-31
- win10全屏缩放设置教程 10-31
- win10系统备份出错解决教程 10-31
- win10打开软件每次都要询问解决教程 10-31
- win10更新驱动后设备出现异常解决教程 10-31
- win10一直提示找到可能不需要的应用解决教程 10-31