Based on http://ipython.org/ipython-doc/stable/install/install.html, on Linux Mint 13 “Maya” (64-bit), the following is how I build IPython 2.0 from source. The instructions should work the same for Ubuntu 12.04 “Precise Pangolin”. Using python version 2.7.
# First, install 'distribute' for use with 'pip', which is going to replace 'easy_install' # I assume 'easy_install' is already installed. If not, install 'easy_install' first sudo easy_install -U distribute # Second, get 'pip' sudo apt-get install python-pip # Then, install an optional package 'pandoc' for document conversion sudo apt-get install pandoc # Now, install all the dependencies, some of them optional sudo pip install virtualenv jinja2 sphinx pyzmq pygments tornado nose pexpect matplotlib # Get the source and compile git clone --recursive https://github.com/ipython/ipython.git cd ipython sudo python setup.py install # I got the following printout from the above step #BUILDING IPYTHON # python: 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] # platform: linux2 # #OPTIONAL DEPENDENCIES # sphinx: 1.2.2 # pygments: 1.6 # nose: 1.3.1 # pexpect: 2.3 # pyzmq: 14.1.0 # tornado: 3.2 # readline: yes # jinja2: 2.7.2 # Test whether it works ipython --version # I got the following printout from the above step #2.0.0-dev # Setup some useful profile preferences ipython profile create foo cp ~/.ipython/profile_foo/ipython_*.py ~/.ipython/profile_default/ # Run IPython notebook ipython notebook
Thanks to IPython contributors for building this amazing tool.