安装完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]:
阅读(3708) | 评论(0) | 转发(0) |