iPython是一个Python的交互式Shell,比默认的Python Shell更加出色,功能也更加强大,支持语法高亮,自动补全,我们在进行Django调试的时候,常会用到这个工具,因些我们需要安装上它。
在Linux中,你可以使用软件包管理工具,如apt-get
或是yum
进行安装,当然也可以直接在你的环境中,使用pip进行安装:
$ pip install ipython
安半成功之后,你可以使用ipython
命令来启动它:
$ ipython
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
Python 2.7.5 (default, Sep 12 2013, 21:33:34)
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]:
ipython与Python自带的那个Shell操作试式类似,只是功能更强大了,如何使用我们这里就不详细说明了,需要的话,可以自行Google。