IPython can be installed in various ways depending on your operating system. For the terminal-based shell, there is a dependency on readline
. The web notebook requires tornado
and zmq
.
In addition to installing IPython, we will install setuptools
, which gives you the easy_install
command. The easy_install
command is the default, standard package manager for Python. pip
can be installed once you have easy_install
available. The pip
command is similar to easy_install
, and adds options such as uninstalling.
This section describes how IPython can be installed on Windows, Mac OS X, and Linux. It also describes how to install IPython and its dependencies with easy_install
and pip
, or from source.
Install setuptools
with an installer from http://pypi.python.org/pypi/setuptools#files. Then install pip
; for instance:
cd C:Python27scripts python .easy_install-27-script.py pip
su β aptitude install ipython python-setuptools
su β yum install ipython python-setuptools-devel
su β emerge ipython
sudo apt-get install ipython python-setuptools
easy_install
, using the following command:easy_install ipython pyzmq tornado readline
Alternatively, you can first
install pip
with easy_install
, by typing the following command in your terminal:
easy_install pip
After that, install IPython using pip
, with the following command:
sudo pip install ipython pyzmq tornado readline
tar xzf ipython-<version>.tar.gz
$ git clone https://github.com/ipython/ipython.git
ipython
directory:cd ipython
setup
script. This may require you to run the command with sudo
, as follows:sudo setup.py install