Blog·Tanky WooABOUTRSS


28 Mar 2012
这篇博客是从旧博客 WordPress 迁移过来,内容可能存在转换异常。


IPython是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩近,支持 bash shell 命令,内置了许多很有用的功能和函数。


IPython provides a rich toolkit to help you make the most out of using Python interactively. Its main components are:


Linux下可以直接在线安装,比如sudo yum install ipython


> > Traceback (most recent call last): File "C:\Python27\Scripts\", line 5, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources > >




On Windows, IPython requires setuptools or distribute.

We hope to remove this dependency in the future.

There are a few caveats for Windows users. The main issue is that a basic python install approach won’t create .bat file or Start Menu shortcuts, which most users want. To get an installation with these, you can use any of the following alternatives:

  1. Install using easy_install.

  2. Install using our binary .exe Windows installer, which can be found here

  3. Install from source, but using setuptools (python install).

IPython by default runs in a terminal window, but the normal terminal application supplied by Microsoft Windows is very primitive. You may want to download the excellent and free Console application instead, which is a far superior tool. You can even configure Console to give you by default an IPython tab, which is very convenient to create new IPython sessions directly from the working terminal.