Lines Matching +full:- +full:python +full:- +full:pip
3 .. _installing-index:
6 Installing Python Modules
9 :Email: distutils-sig@python.org
11 As a popular open source development project, Python has an active
13 available for other Python developers to use under open source license terms.
15 This allows Python users to share and collaborate effectively, benefiting
21 creating and sharing your own Python projects, refer to the
22 `Python packaging user guide`_.
24 .. _Python Packaging User Guide: https://packaging.python.org/en/latest/tutorials/packaging-project…
31 use of the distribution and installation tools provided with Python.
37 * ``pip`` is the preferred installer program. Starting with Python 3.4, it
38 is included by default with the Python binary installers.
39 * A *virtual environment* is a semi-isolated Python environment that allows
43 been part of Python since Python 3.3. Starting with Python 3.4, it
44 defaults to installing ``pip`` into all created virtual environments.
47 Python prior to 3.4, which either don't provide ``venv`` at all, or
48 aren't able to automatically install ``pip`` into created environments.
49 * The `Python Package Index <https://pypi.org>`__ is a public
51 other Python users.
52 * the `Python Packaging Authority
59 the Python standard library in 1998. While direct use of ``distutils`` is
63 of the mailing list used to coordinate Python packaging standards
71 `Python Packaging User Guide: Creating and using virtual environments
72 <https://packaging.python.org/installing/#creating-virtual-environments>`__
82 dependencies from the Python Package Index::
84 python -m pip install SomePackage
93 Python.
100 python -m pip install SomePackage==1.0.4 # specific version
101 python -m pip install "SomePackage>=1.0.4" # minimum version
107 python -m pip install --upgrade SomePackage
109 More information and resources regarding ``pip`` and its capabilities can be
110 found in the `Python Packaging User Guide <https://packaging.python.org>`__.
118 `Python Packaging User Guide: Installing Python Distribution Packages
119 <https://packaging.python.org/installing/>`__
127 ... install ``pip`` in versions of Python prior to Python 3.4?
128 --------------------------------------------------------------
130 Python only started bundling ``pip`` with Python 3.4. For earlier versions,
131 ``pip`` needs to be "bootstrapped" as described in the Python Packaging
136 `Python Packaging User Guide: Requirements for Installing Packages
137 <https://packaging.python.org/installing/#requirements-for-installing-packages>`__
140 .. installing-per-user-installation:
143 -----------------------------------------------
145 Passing the ``--user`` option to ``python -m pip install`` will install a
149 ... install scientific Python packages?
150 ---------------------------------------
152 A number of scientific Python packages have complex binary dependencies, and
153 aren't currently easy to install using ``pip`` directly. At this point in
155 `other means <https://packaging.python.org/science/>`__
156 rather than attempting to install them with ``pip``.
160 `Python Packaging User Guide: Installing Scientific Packages
161 <https://packaging.python.org/science/>`__
164 ... work with multiple versions of Python installed in parallel?
165 ----------------------------------------------------------------
167 On Linux, macOS, and other POSIX systems, use the versioned Python commands
168 in combination with the ``-m`` switch to run the appropriate copy of
169 ``pip``::
171 python2 -m pip install SomePackage # default Python 2
172 python2.7 -m pip install SomePackage # specifically Python 2.7
173 python3 -m pip install SomePackage # default Python 3
174 python3.4 -m pip install SomePackage # specifically Python 3.4
176 Appropriately versioned ``pip`` commands may also be available.
178 On Windows, use the ``py`` Python launcher in combination with the ``-m``
181 py -2 -m pip install SomePackage # default Python 2
182 py -2.7 -m pip install SomePackage # specifically Python 2.7
183 py -3 -m pip install SomePackage # default Python 3
184 py -3.4 -m pip install SomePackage # specifically Python 3.4
191 https://packaging.python.org/en/latest/mirrors/)
197 Installing into the system Python on Linux
198 ------------------------------------------
200 On Linux systems, a Python installation will typically be included as part
201 of the distribution. Installing into this Python installation requires
204 is unexpectedly upgraded using ``pip``.
207 per-user installation when installing packages with ``pip``.
210 Pip not installed
211 -----------------
213 It is possible that ``pip`` does not get installed by default. One potential fix is::
215 python -m ensurepip --default-pip
217 There are also additional resources for `installing pip.
218 <https://packaging.python.org/en/latest/tutorials/installing-packages/#ensure-pip-setuptools-and-wh…
222 ----------------------------
224 Python has typically relied heavily on source based distribution, with end
230 Python Package Index, this problem is expected to diminish over time,
231 as users are more regularly able to install pre-built extensions rather
235 <https://packaging.python.org/science/>`__
236 that are not yet available as pre-built ``wheel`` files may also help with
241 `Python Packaging User Guide: Binary Extensions
242 <https://packaging.python.org/extensions/>`__