pip/docs/installing.rst

61 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2013-01-18 22:25:15 +01:00
.. _`Installation`:
2011-03-15 06:43:03 +01:00
2013-01-18 22:25:15 +01:00
Installation
============
Python & OS Support
-------------------
2013-01-18 22:25:15 +01:00
pip works with CPython versions 2.6, 2.7, 3.1, 3.2, 3.3, 3.4 and also pypy.
2013-01-18 22:25:15 +01:00
pip works on Unix/Linux, OS X, and Windows.
.. note::
Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1.
.. _`get-pip`:
Install or Upgrade pip
----------------------
To install or upgrade pip, securely download `get-pip.py
<https://raw.github.com/pypa/pip/master/contrib/get-pip.py>`_. [1]_
Then run the following (which may require administrator access)::
$ python get-pip.py
.. note::
Beginning with v1.5.1, pip does not require `setuptools`_ prior to running
`get-pip.py`. Additionally, if `setuptools`_ (or `distribute`_) is not
already installed, `get-pip.py` will install `setuptools`_ for you.
Using Package Managers
----------------------
On Linux, pip will generally be available for the system install of python using
the system package manager, although often the latest version will be
unavailable.
On Debian and Ubuntu::
2011-03-15 06:43:03 +01:00
$ sudo apt-get install python-pip
On Fedora::
2011-03-15 06:43:03 +01:00
$ sudo yum install python-pip
2011-03-15 06:43:03 +01:00
.. [1] "Secure" in this context means using a modern browser or a
tool like `curl` that verifies SSL certificates when downloading from
https URLs.
.. _setuptools: https://pypi.python.org/pypi/setuptools
.. _distribute: https://pypi.python.org/pypi/distribute
2011-03-15 06:43:03 +01:00