##// END OF EJS Templates
Merge pull request #9429 from takluyver/prompt-token-fix...
Merge pull request #9429 from takluyver/prompt-token-fix Back to explicit styles for the prompt tokens

File last commit:

r22180:491f7881
r22287:d58e930d merge
Show More
install.rst
180 lines | 5.6 KiB | text/x-rst | RstLexer
Thomas Kluyver
Update docs for Python version support
r12147 IPython requires Python 2.7 or ≥ 3.3.
Fernando Perez
Documentation updates....
r1753
Thomas Kluyver
Remove extraneous information from install document
r21579 .. seealso::
MinRK
add note about Windows setuptools dependency to install doc
r4097
Thomas Kluyver
Remove extraneous information from install document
r21579 `Installing Jupyter <http://jupyter.readthedocs.org/en/latest/install.html>`__
The Notebook, nbconvert, and many other former pieces of IPython are now
part of Project Jupyter.
Min RK
update install doc...
r20524
Fernando Perez
Include pygments in requirements, small doc fixes.
r6602
Brian Granger
Minor doc fixes for the 0.9 release....
r1729 Quickstart
==========
Min RK
update install doc...
r20524 If you have :mod:`pip`,
MinRK
install doc pass...
r12090 the quickest way to get up and running with IPython is:
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Thomas Kluyver
Remove extraneous information from install document
r21579 $ pip install ipython
Fernando Perez
Include pygments in requirements, small doc fixes.
r6602
Thomas Kluyver
Remove extraneous information from install document
r21579 To use IPython with notebooks or the Qt console, you should also install
``jupyter``.
Brian Granger
Major work on the documentation....
r2277
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
MinRK
install doc pass...
r12090
Overview
========
Thomas Kluyver
Remove extraneous information from install document
r21579 This document describes in detail the steps required to install IPython.
MinRK
install doc pass...
r12090 For a few quick ways to get started with package managers or full Python distributions,
see `the install page <http://ipython.org/install.html>`_ of the IPython website.
Please let us know if you have problems installing IPython or any of its dependencies.
MinRK
pass on install docs...
r16708 IPython and most dependencies can be installed via :command:`pip`.
In many scenarios, this is the simplest method of installing Python packages.
More information about :mod:`pip` can be found on
`its PyPI page <http://pypi.python.org/pypi/pip>`__.
MinRK
install doc pass...
r12090
More general information about installing Python packages can be found in
`Python's documentation <http://docs.python.org>`_.
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
Min RK
update install doc...
r20524 editing. If you install IPython with :mod:`pip`,
then the appropriate :mod:`readline` for your platform will be installed.
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
MinRK
pass on install docs...
r16708 Installation using pip
----------------------
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
address review in install doc
r20534 If you have :mod:`pip`, the easiest way of getting IPython is:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
install doc pass...
r12090 $ pip install ipython
Brian Granger
Adding new install docs as install.txt.
r1690
That's it.
MinRK
install doc pass...
r12090
Brian Granger
Adding new install docs as install.txt.
r1690 Installation from source
------------------------
MinRK
pass on install docs...
r16708 If you don't want to use :command:`pip`, or don't have it installed,
Thomas Kluyver
Remove extraneous information from install document
r21579 grab the latest stable tarball of IPython `from PyPI
<https://pypi.python.org/pypi/ipython>`__. Then do the following:
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 $ tar -xzf ipython.tar.gz
$ cd ipython
Matthias Bussonnier
'Update install instructions'
r22180 $ pip 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
Installing the development version
----------------------------------
Fernando Perez
Documentation updates....
r1753 It is also possible to install the development version of IPython from our
MinRK
update install doc to reflect 0.11 changes and GitHub move...
r3768 `Git <http://git-scm.com/>`_ source code repository. To do this you will
Min RK
update install doc...
r20524 need to have Git installed on your system. Then do:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Matthias Bussonnier
'Update install instructions'
r22180 $ git clone https://github.com/ipython/ipython.git
Brian Granger
Major work on the documentation....
r2277 $ cd ipython
Matthias Bussonnier
'Update install instructions'
r22180 $ pip install .
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
Min RK
update install doc...
r20524 you have :mod:`pip`, you can replace the last step by:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 $ pip install -e .
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
Nikolay Koldunov
Fix on fix of install documentation
r16319 the appropriate places.
Nikolay Koldunov
Mention git hooks in install documentation
r16317
Min RK
update install doc...
r20524 Then, if you want to update your IPython at any time, do:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Fernando Perez
Documentation updates....
r1753
MinRK
update install doc to reflect 0.11 changes and GitHub move...
r3768 $ git pull
Brian Granger
Adding new install docs as install.txt.
r1690
Thomas Kluyver
Remove extraneous information from install document
r21579 .. _dependencies:
Nikolay Koldunov
Fix on fix of install documentation
r16319
Thomas Kluyver
Remove extraneous information from install document
r21579 Dependencies
============
MinRK
install doc pass...
r12090
Thomas Kluyver
Remove extraneous information from install document
r21579 IPython relies on a number of other Python packages. Installing using a package
manager like pip or conda will ensure the necessary packages are installed. If
you install manually, it's up to you to make sure dependencies are installed.
They're not listed here, because they may change from release to release, so a
static list will inevitably get out of date.
Brian Granger
Adding new install docs as install.txt.
r1690
Thomas Kluyver
Remove extraneous information from install document
r21579 It also has one key non-Python dependency which you may need to install separately.
Thomas Kluyver
Reduce information about Pexpect
r14705
Brian Granger
Adding new install docs as install.txt.
r1690 readline
--------
Thomas Kluyver
Remove extraneous information from install document
r21579 IPython's terminal interface relies on readline to provide features like tab
completion and history navigation. If you only want to use IPython as a kernel
for Jupyter notebooks and other frontends, you don't need readline.
**On Windows**, to get full console functionality, *PyReadline* is required.
Fernando Perez
Update installation instructions....
r6598 PyReadline is a separate, Windows only implementation of readline that uses
native Windows calls through :mod:`ctypes`. The easiest way of installing
PyReadline is you use the binary installer available `here
MinRK
install doc pass...
r12090 <http://pypi.python.org/pypi/pyreadline>`__.
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058
Thomas Kluyver
Remove extraneous information from install document
r21579 **On OS X**, if you are using the built-in Python shipped by Apple, you will be
MinRK
pass on install docs...
r16708 missing a proper readline implementation as Apple ships instead a library called
Fernando Perez
Update installation instructions....
r6598 ``libedit`` that provides only some of readline's functionality. 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.
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058
MinRK
pass on install docs...
r16708 Therefore, IPython on OS X depends on the :mod:`gnureadline` module.
Thomas Kluyver
Remove extraneous information from install document
r21579 We will *not* consider completion/history problems to be bugs for IPython if you
are using libedit.
Fernando Perez
Documentation updates....
r1753
Min RK
update install doc...
r20524 To get a working :mod:`readline` module on OS X, do (with :mod:`pip`
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058 installed):
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
pass on install docs...
r16708 $ pip install gnureadline
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
MinRK
pass on install docs...
r16708 Other Python distributions on OS X (such as Anaconda, fink, MacPorts)
already have proper readline so you likely don't have to do this step.
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
address review in install doc
r20534 When IPython is installed with :mod:`pip`,
the correct readline should be installed if you specify the `terminal`
MinRK
pass on install docs...
r16708 optional dependencies:
.. code-block:: bash
gporras
Fixes #6561 instructions for installing dependencies on zsh/tcsh
r18023 $ pip install "ipython[terminal]"
Brian Granger
Adding new install docs as install.txt.
r1690
Thomas Kluyver
Remove extraneous information from install document
r21579 **On Linux**, readline is normally installed by default. If not, install it
from your system package manager. If you are compiling your own Python, make
sure you install the readline development headers first.
Brian Granger
Adding new install docs as install.txt.
r1690