##// END OF EJS Templates
rebase IPython.parallel after removal of IPython.kernel...
rebase IPython.parallel after removal of IPython.kernel This commit removes all '*z' suffixes from scripts and docs, as there is no longer conflict with IPython.kernel.

File last commit:

r3672:e950e624
r3672:e950e624
Show More
install.txt
328 lines | 11.0 KiB | text/plain | TextLexer
Brian Granger
Adding new install docs as install.txt.
r1690 Overview
========
Fernando Perez
Documentation updates....
r1753 This document describes the steps required to install IPython. IPython is
organized into a number of subpackages, each of which has its own dependencies.
All of the subpackages come with IPython, so you don't need to download and
install them separately. However, to use a given subpackage, you will need to
install all of its dependencies.
Brian Granger
Adding new install docs as install.txt.
r1690
Please let us know if you have problems installing IPython or any of its
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 dependencies. Officially, IPython requires Python version 2.6 or 2.7. There
is an experimental port of IPython for Python3 `on GitHub
<https://github.com/ipython/ipython-py3k>`_
Brian Granger
Adding new install docs as install.txt.
r1690
.. warning::
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 Officially, IPython supports Python versions 2.6 and 2.7.
Fernando Perez
Small documentation updates and comments about Windows install.
r2113
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 IPython 0.11 has a hard syntax dependency on 2.6, and will no longer work
on Python <= 2.5.
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 Some of the installation approaches use the :mod:`setuptools` package and its
:command:`easy_install` command line program. In many scenarios, this provides
the most simple method of installing IPython and its dependencies. It is not
required though. More information about :mod:`setuptools` can be found on its
website.
More general information about installing Python packages can be found in
Python's documentation at http://www.python.org/doc/.
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Minor doc fixes for the 0.9 release....
r1729 Quickstart
==========
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 If you have :mod:`setuptools` installed and you are on OS X or Linux (not
Windows), the following will download and install IPython *and* the main
Brian Granger
Work on documentation....
r2276 optional dependencies:
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 $ easy_install ipython[zmq,test]
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 This will get pyzmq, which is needed for
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 IPython's parallel computing features as well as the nose package, which will
Brian Granger
Major work on the documentation....
r2277 enable you to run IPython's test suite.
.. warning::
IPython's test system is being refactored and currently the
:command:`iptest` shown below does not work. More details about the
testing situation can be found :ref:`here <testing>`
To run IPython's test suite, use the :command:`iptest` command:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Brian Granger
Major work on the documentation....
r2277 $ iptest
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Read on for more specific details and instructions for Windows.
Brian Granger
Adding new install docs as install.txt.
r1690
Installing IPython itself
=========================
Fernando Perez
Documentation updates....
r1753 Given a properly built Python, the basic interactive IPython shell will work
with no external dependencies. However, some Python distributions
(particularly on Windows and OS X), don't come with a working :mod:`readline`
module. The IPython shell will work without :mod:`readline`, but will lack
many features that users depend on, such as tab completion and command line
editing. See below for details of how to make sure you have a working
:mod:`readline`.
Brian Granger
Adding new install docs as install.txt.
r1690
Installation using easy_install
-------------------------------
Fernando Perez
Documentation updates....
r1753 If you have :mod:`setuptools` installed, the easiest way of getting IPython is
Brian Granger
Work on documentation....
r2276 to simple use :command:`easy_install`:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Major work on the documentation....
r2277 $ easy_install ipython
Brian Granger
Adding new install docs as install.txt.
r1690
That's it.
Installation from source
------------------------
Fernando Perez
Documentation updates....
r1753 If you don't want to use :command:`easy_install`, or don't have it installed,
just grab the latest stable build of IPython from `here
Brian Granger
Work on documentation....
r2276 <http://ipython.scipy.org/dist/>`_. Then do the following:
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ tar -xzf ipython.tar.gz
$ cd ipython
$ python setup.py install
Fernando Perez
Documentation updates....
r1753
If you are installing to a location (like ``/usr/local``) that requires higher
permissions, you may need to run the last command with :command:`sudo`.
Brian Granger
Adding new install docs as install.txt.
r1690
Windows
-------
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 There are a few caveats for Windows users. The main issue is that a basic
``python setup.py install`` approach won't create ``.bat`` file or Start Menu
Fernando Perez
Small documentation updates and comments about Windows install.
r2113 shortcuts, which most users want. To get an installation with these, you can
use any of the following alternatives:
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 1. Install using :command:`easy_install`.
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 2. Install using our binary ``.exe`` Windows installer, which can be found at
`here <http://ipython.scipy.org/dist/>`_
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 3. Install from source, but using :mod:`setuptools` (``python setupegg.py
Fernando Perez
More doc updates....
r1754 install``).
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 IPython by default runs in a terminal window, but the normal terminal
Fernando Perez
Small documentation updates and comments about Windows install.
r2113 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.
.. _Console: http://sourceforge.net/projects/console
Fernando Perez
Add documentation note about windows 64-bit installation procedure....
r2555 Note for Windows 64 bit users: you may have difficulties with the stock
installer on 64 bit systems; in this case (since we currently do not have 64
bit builds of the Windows installer) your best bet is to install from source
with the setuptools method indicated in #3 above. See `this bug report`_ for
further details.
.. _this bug report: https://bugs.launchpad.net/ipython/+bug/382214
Fernando Perez
Small documentation updates and comments about Windows install.
r2113
Brian Granger
Adding new install docs as install.txt.
r1690 Installing the development version
----------------------------------
Fernando Perez
Documentation updates....
r1753 It is also possible to install the development version of IPython from our
`Bazaar <http://bazaar-vcs.org/>`_ source code repository. To do this you will
Brian Granger
Work on documentation....
r2276 need to have Bazaar installed on your system. Then just do:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Major work on the documentation....
r2277 $ bzr branch lp:ipython
$ cd ipython
$ python setup.py install
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 Again, this last step on Windows won't create ``.bat`` files or Start Menu
shortcuts, so you will have to use one of the other approaches listed above.
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 Some users want to be able to follow the development branch as it changes. If
you have :mod:`setuptools` installed, this is easy. Simply replace the last
Brian Granger
Work on documentation....
r2276 step by:
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ python setupegg.py develop
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
More doc updates....
r1754 This creates links in the right places and installs the command line script to
the appropriate places. Then, if you want to update your IPython at any time,
Brian Granger
Work on documentation....
r2276 just do:
.. code-block:: bash
Fernando Perez
Documentation updates....
r1753
Brian Granger
Major work on the documentation....
r2277 $ bzr pull
Brian Granger
Adding new install docs as install.txt.
r1690
Basic optional dependencies
===========================
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 There are a number of basic optional dependencies that most users will want to
get. These are:
Brian Granger
Adding new install docs as install.txt.
r1690
* readline (for command line editing, tab completion, etc.)
* nose (to run the IPython test suite)
* pexpect (to use things like irunner)
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 If you are comfortable installing these things yourself, have at it, otherwise
read on for more details.
Brian Granger
Adding new install docs as install.txt.
r1690
readline
--------
Fernando Perez
More doc updates....
r1754 In principle, all Python distributions should come with a working
:mod:`readline` module. But, reality is not quite that simple. There are two
common situations where you won't have a working :mod:`readline` module:
Brian Granger
Adding new install docs as install.txt.
r1690
* If you are using the built-in Python on Mac OS X.
* If you are running Windows, which doesn't have a :mod:`readline` module.
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058
Fernando Perez
Documentation updates....
r1753 On OS X, the built-in Python doesn't not have :mod:`readline` because of
license issues. Starting with OS X 10.5 (Leopard), Apple's built-in Python has
a BSD-licensed not-quite-compatible readline replacement. As of IPython 0.9,
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058 many of the issues related to the differences between readline and libedit seem
to have been resolved. While you may find libedit sufficient, we have
occasional reports of bugs with it and several developers who use OS X as their
main environment consider libedit unacceptable for productive, regular use with
IPython.
Therefore, we *strongly* recommend that on OS X you get the full
:mod:`readline` module. We will *not* consider completion/history problems to
be bugs for IPython if you are using libedit.
Fernando Perez
Documentation updates....
r1753
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058 To get a working :mod:`readline` module, just do (with :mod:`setuptools`
installed):
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Major work on the documentation....
r2277 $ easy_install readline
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 .. note::
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058 Other Python distributions on OS X (such as fink, MacPorts and the official
python.org binaries) already have readline installed so you likely don't
have to do this step.
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 If needed, the readline egg can be build and installed from source (see the
wiki page at http://ipython.scipy.org/moin/InstallationOSXLeopard).
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Update of docs to reflect the new ipcluster version....
r1788 On Windows, you will need the PyReadline module. PyReadline is a separate,
Fernando Perez
Documentation updates....
r1753 Windows only implementation of readline that uses native Windows calls through
Brian Granger
Update of docs to reflect the new ipcluster version....
r1788 :mod:`ctypes`. The easiest way of installing PyReadline is you use the binary
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 installer available `here <http://ipython.scipy.org/dist/>`_. The :mod:`ctypes`
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 module, which comes with Python 2.5 and greater, is required by PyReadline.
Brian Granger
Adding new install docs as install.txt.
r1690
nose
----
Fernando Perez
Documentation updates....
r1753 To run the IPython test suite you will need the :mod:`nose` package. Nose
provides a great way of sniffing out and running all of the IPython tests. The
Brian Granger
Work on documentation....
r2276 simplest way of getting nose, is to use :command:`easy_install`:
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ easy_install nose
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 Another way of getting this is to do:
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Major work on the documentation....
r2277 $ easy_install ipython[test]
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 For more installation options, see the `nose website
Brian Granger
Major work on the documentation....
r2277 <http://somethingaboutorange.com/mrl/projects/nose/>`_.
.. warning::
As described above, the :command:`iptest` command currently doesn't work.
Once you have nose installed, you can run IPython's test suite using the
iptest command:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ iptest
Brian Granger
Adding new install docs as install.txt.
r1690
pexpect
-------
Fernando Perez
Documentation updates....
r1753 The `pexpect <http://www.noah.org/wiki/Pexpect>`_ package is used in IPython's
Brian Granger
Work on documentation....
r2276 :command:`irunner` script. On Unix platforms (including OS X), just do:
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ easy_install pexpect
Brian Granger
Adding new install docs as install.txt.
r1690
Windows users are out of luck as pexpect does not run there.
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 Dependencies for IPython.parallel (parallel computing)
======================================================
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 :mod:`IPython.kernel` has been replaced by :mod:`IPython.parallel`,
which uses ZeroMQ for all communication.
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 IPython.parallel provides a nice architecture for parallel computing. The
main focus of this architecture is on interactive parallel computing. These
features require just one package: pyzmq. See the next section for pyzmq
details.
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 On a Unix style platform (including OS X), if you want to use
:mod:`setuptools`, you can just do:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 $ easy_install ipython[zmq] # will include pyzmq
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 Security in IPython.parallel is provided by SSH tunnels. By default, Linux
and OSX clients will use the shell ssh command, but on Windows, we also
support tunneling with paramiko [paramiko]_.
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 Dependencies for IPython.zmq
============================
MinRK
initial draft of core zmq.parallel docs
r3591
pyzmq
-----
IPython 0.11 introduced some new functionality, including a two-process
execution model using ZeroMQ for communication [ZeroMQ]_. The Python bindings
to ZeroMQ are found in the pyzmq project, which is easy_install-able once you
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 have ZeroMQ installed (or even if you don't).
IPython.zmq depends on pyzmq >= 2.0.10.1, but IPython.parallel requires the more
recent 2.1.4. 2.1.4 also has binary releases for OSX and Windows, that do not
require prior installation of libzmq.
MinRK
initial draft of core zmq.parallel docs
r3591
Dependencies for ipython-qtconsole (new GUI)
============================================
PyQt
----
Also with 0.11, a new GUI was added using the work in :mod:`IPython.zmq`,
which can be launched with ``ipython-qtconsole``. The GUI is built on PyQt ,
which can be installed from the
`PyQt website <http://www.riverbankcomputing.co.uk/>`_.
pygments
--------
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 The syntax-highlighting in ``ipython-qtconsole`` is done with the pygments project,
which is easy_install-able.
MinRK
initial draft of core zmq.parallel docs
r3591
Brian Granger
Update of docs to reflect the new ipcluster version....
r1788 .. [Twisted] Twisted matrix. http://twistedmatrix.org
.. [ZopeInterface] http://pypi.python.org/pypi/zope.interface
.. [Foolscap] Foolscap network protocol. http://foolscap.lothar.com/trac
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 .. [pyOpenSSL] pyOpenSSL. http://pyopenssl.sourceforge.net
MinRK
initial draft of core zmq.parallel docs
r3591 .. [ZeroMQ] ZeroMQ. http://www.zeromq.org
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 .. [paramiko] paramiko. https://github.com/robey/paramiko