get-pip.py option examples

This commit is contained in:
Marcus Smith 2014-04-08 22:57:22 -07:00
parent 4691a9e8b7
commit 0867816811
2 changed files with 16 additions and 4 deletions

View File

@ -32,12 +32,23 @@ Then run the following (which may require administrator access):
If `setuptools`_ (or `distribute`_) is not already installed, ``get-pip.py`` will
install `setuptools`_ for you. [2]_
Additionally, ``get-pip.py`` supports using the :ref:`pip install options <pip
install Options>` and the :ref:`General Options`. Below are some examples:
::
# Install from local copies of pip and setuptools
python get-pip.py --no-index --find-links=/local/copies
# Install to the user site
python get-pip.py --user
# Install behind a proxy
python get-pip.py --proxy="[user:passwd@]proxy.server:port"
To upgrade an existing `setuptools`_ (or `distribute`_), run ``pip install -U setuptools`` [3]_
``get-pip.py`` supports the usual pip options (see :ref:`General Options` reference).
In this way, it is possible to get pip behind a proxy, running the following::
python get-pip.py --proxy="[user:passwd@]proxy.server:port"
Upgrade pip
-----------

View File

@ -339,6 +339,7 @@ To have the dependency located from a local directory and not crawl PyPI, add th
find_links = file:///path/to/local/archives
.. _`pip install Options`:
Options
*******