Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151084
  • 博文数量: 38
  • 博客积分: 687
  • 博客等级: 上士
  • 技术积分: 426
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-09 10:48
文章分类

全部博文(38)

文章存档

2019年(1)

2016年(1)

2014年(5)

2013年(1)

2012年(8)

2011年(17)

2010年(2)

2009年(3)

我的朋友

分类: Python/Ruby

2014-01-26 16:12:07

安装完enthought的canopy。发现
ipython 按上箭头键显示上一条命令不好用
ipython tab键自动匹配功能不好用
但是canopy里是好用的。

这都是readline没有安装的结果。readline是一个os提供的service,所以Windows下没有这个功能。
~
 $ easy_install readline
Searching for readline
Reading
Best match: readline 6.2.4.1
Downloading

Processing readline-6.2.4.1.tar.gz
Writing /tmp/easy_install-zu0dj0/readline-6.2.4.1/setup.cfg
Running readline-6.2.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zu0dj0/readline-6.2.4.1/egg-dist-tmp-8MzhOA
Adding readline 6.2.4.1 to easy-install.pth file

Installed /home/dli/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/readline-6.2.4.1-py2.7-linux-i686.egg
Processing dependencies for readline
Finished processing dependencies for readline
~
 $
~
 $ ipython
Python 2.7.3 | 32-bit | (default, Dec  2 2013, 16:13:54)
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: readline
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
in ()
----> 1 readline

NameError: name 'readline' is not defined

In [2]: anaaaaaaa=1

In [3]: anbbbb=2

In [4]: an
anaaaaaaa  anbbbb     and        any        

In [4]:
阅读(3608) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~