Skip to content

Commit 4251a3f

Browse files
committed
Merge pull request #166 from qwcode/pip_default
make it clearer when pip is already installed
2 parents edd3300 + 3e9846d commit 4251a3f

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎source/current.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Installation Tool Recommendations
1717
* Use :ref:`pip` to install Python :term:`packages <Distribution Package>` from
1818
:term:`PyPI <Python Package Index (PyPI)>`. [1]_ [2]_ Depending how :ref:`pip`
1919
is installed, you may need to also install :ref:`wheel` to get the benefit
20-
of :ref:`wheel caching <pip:Wheel cache>`. [3]_
20+
of wheel caching. [3]_
2121

2222
* Use :ref:`virtualenv`, or `pyvenv`_ to isolate application specific
2323
dependencies from a shared Python installation. [4]_

‎source/installing.rst‎

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,26 @@ packages.
3232

3333
1. Install :ref:`pip`, :ref:`setuptools`, and :ref:`wheel`:
3434

35-
If you have Python 2 >=2.7.9 or Python 3 >=3.4:
35+
If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from `python.org
36+
<https://www.python.org>`_:
3637

37-
You may already have the ``pip`` command available by default (and
38-
setuptools will be installed as well), or you may at least contain a
39-
working `ensurepip
40-
<https://docs.python.org/3.4/library/ensurepip.html>`_. To install pip (and
41-
setuptools) using ensurepip, run: ``python -m ensurepip --upgrade``.
38+
You will already have :ref:`pip` and :ref:`setuptools`, but will need to
39+
upgrade to the latest version:
4240

43-
Since :ref:`wheel` won't be installed, you'll also need to run: ``pip
44-
install wheel``
41+
On Linux or OS X:
42+
43+
::
44+
45+
pip install -U pip
46+
47+
48+
On Windows:
49+
50+
::
51+
52+
python -m pip install -U pip
53+
54+
You will not have :ref:`wheel`, so you'll need to run: ``pip install wheel``
4555

4656
Otherwise:
4757

0 commit comments

Comments
 (0)