• Home
  • Raw
  • Download

Lines Matching +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 :ref:`distribution guide <distributing-index>`.
29 use of the distribution and installation tools provided with Python.
35 * ``pip`` is the preferred installer program. Starting with Python 3.4, it
36 is included by default with the Python binary installers.
37 * A *virtual environment* is a semi-isolated Python environment that allows
41 been part of Python since Python 3.3. Starting with Python 3.4, it
42 defaults to installing ``pip`` into all created virtual environments.
45 Python prior to 3.4, which either don't provide ``venv`` at all, or
46 aren't able to automatically install ``pip`` into created environments.
47 * The `Python Package Index <https://pypi.org>`__ is a public
49 other Python users.
50 * the `Python Packaging Authority
58 the Python standard library in 1998. While direct use of ``distutils`` is
62 of the mailing list used to coordinate Python packaging standards
70 `Python Packaging User Guide: Creating and using virtual environments
71 <https://packaging.python.org/installing/#creating-virtual-environments>`__
81 dependencies from the Python Package Index::
83 python -m pip install SomePackage
92 Python.
99 python -m pip install SomePackage==1.0.4 # specific version
100 python -m pip install "SomePackage>=1.0.4" # minimum version
106 python -m pip install --upgrade SomePackage
108 More information and resources regarding ``pip`` and its capabilities can be
109 found in the `Python Packaging User Guide <https://packaging.python.org>`__.
117 `Python Packaging User Guide: Installing Python Distribution Packages
118 <https://packaging.python.org/installing/>`__
126 ... install ``pip`` in versions of Python prior to Python 3.4?
127 --------------------------------------------------------------
129 Python only started bundling ``pip`` with Python 3.4. For earlier versions,
130 ``pip`` needs to be "bootstrapped" as described in the Python Packaging
135 `Python Packaging User Guide: Requirements for Installing Packages
136 <https://packaging.python.org/installing/#requirements-for-installing-packages>`__
139 .. installing-per-user-installation:
142 -----------------------------------------------
144 Passing the ``--user`` option to ``python -m pip install`` will install a
148 ... install scientific Python packages?
149 ---------------------------------------
151 A number of scientific Python packages have complex binary dependencies, and
152 aren't currently easy to install using ``pip`` directly. At this point in
154 `other means <https://packaging.python.org/science/>`__
155 rather than attempting to install them with ``pip``.
159 `Python Packaging User Guide: Installing Scientific Packages
160 <https://packaging.python.org/science/>`__
163 ... work with multiple versions of Python installed in parallel?
164 ----------------------------------------------------------------
166 On Linux, macOS, and other POSIX systems, use the versioned Python commands
167 in combination with the ``-m`` switch to run the appropriate copy of
168 ``pip``::
170 python2 -m pip install SomePackage # default Python 2
171 python2.7 -m pip install SomePackage # specifically Python 2.7
172 python3 -m pip install SomePackage # default Python 3
173 python3.4 -m pip install SomePackage # specifically Python 3.4
175 Appropriately versioned ``pip`` commands may also be available.
177 On Windows, use the ``py`` Python launcher in combination with the ``-m``
180 py -2 -m pip install SomePackage # default Python 2
181 py -2.7 -m pip install SomePackage # specifically Python 2.7
182 py -3 -m pip install SomePackage # default Python 3
183 py -3.4 -m pip install SomePackage # specifically Python 3.4
190 https://packaging.python.org/en/latest/mirrors/)
196 Installing into the system Python on Linux
197 ------------------------------------------
199 On Linux systems, a Python installation will typically be included as part
200 of the distribution. Installing into this Python installation requires
203 is unexpectedly upgraded using ``pip``.
206 per-user installation when installing packages with ``pip``.
209 Pip not installed
210 -----------------
212 It is possible that ``pip`` does not get installed by default. One potential fix is::
214 python -m ensurepip --default-pip
216 There are also additional resources for `installing pip.
217 <https://packaging.python.org/en/latest/tutorials/installing-packages/#ensure-pip-setuptools-and-wh…
221 ----------------------------
223 Python has typically relied heavily on source based distribution, with end
229 Python Package Index, this problem is expected to diminish over time,
230 as users are more regularly able to install pre-built extensions rather
234 <https://packaging.python.org/science/>`__
235 that are not yet available as pre-built ``wheel`` files may also help with
240 `Python Packaging User Guide: Binary Extensions
241 <https://packaging.python.org/extensions/>`__