Lines Matching +full:- +full:python +full:- +full:pip
1 :mod:`!ensurepip` --- Bootstrapping the ``pip`` installer
5 :synopsis: Bootstrapping the "pip" installer into an existing Python
12 --------------
14 The :mod:`ensurepip` package provides support for bootstrapping the ``pip``
15 installer into an existing Python installation or virtual environment. This
16 bootstrapping approach reflects the fact that ``pip`` is an independent
21 In most cases, end users of Python shouldn't need to invoke this module
22 directly (as ``pip`` should be bootstrapped by default), but it may be
23 needed if installing ``pip`` was skipped when installing Python (or
25 ``pip``.
30 needed to bootstrap ``pip`` are included as internal parts of the
35 :ref:`installing-index`
36 The end user guide for installing Python packages
38 :pep:`453`: Explicit bootstrapping of pip in Python installations
41 .. include:: ../includes/wasm-mobile-notavail.rst
44 ----------------------
46 The command line interface is invoked using the interpreter's ``-m`` switch.
50 python -m ensurepip
52 This invocation will install ``pip`` if it is not already installed,
53 but otherwise does nothing. To ensure the installed version of ``pip``
55 ``--upgrade`` option::
57 python -m ensurepip --upgrade
59 By default, ``pip`` is installed into the current virtual environment
64 * :samp:`--root {dir}`: Installs ``pip`` relative to the given root directory
66 or the default root for the current Python installation.
67 * ``--user``: Installs ``pip`` into the user site packages directory rather
68 than globally for the current Python installation (this option is not
72 X.Y stands for the version of Python used to invoke ``ensurepip``). The
76 * ``--altinstall``: if an alternate installation is requested, the ``pipX``
79 * ``--default-pip``: if a "default pip" installation is requested, the
80 ``pip`` script will be installed in addition to the two regular scripts.
86 ----------
92 Returns a string specifying the available version of pip that will be
99 Bootstraps ``pip`` into the current or designated environment.
106 of an earlier version of ``pip`` to the available version.
112 X.Y stands for the current version of Python).
116 If *default_pip* is set, then ``pip`` will be installed in addition to
125 .. audit-event:: ensurepip.bootstrap root ensurepip.bootstrap
136 ``pip``, but other software should not assume those dependencies will
138 future version of ``pip``).