• 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 2.7.9, it
36 is included by default with the Python binary installers.
37 * a virtual environment is a semi-isolated Python environment that allows
41 is defaults to installing ``pip`` into all created virtual environments.
42 * the `Python Packaging Index <https://pypi.org>`__ is a public repository of
43 open source licensed packages made available for use by other Python users
44 * the `Python Packaging Authority
52 the Python standard library in 1998. While direct use of ``distutils`` is
56 of the mailing list used to coordinate Python packaging standards
67 dependencies from the Python Packaging Index::
69 python -m pip install SomePackage
75 ``virtualenv`` to provide such environments using either pip
76 (``pip install virtualenv``) or through your system package manager
77 (commonly called ``virtualenv`` or ``python-virtualenv``).
81 Python.
88 python -m pip install SomePackage==1.0.4 # specific version
89 python -m pip install "SomePackage>=1.0.4" # minimum version
95 python -m pip install --upgrade SomePackage
97 More information and resources regarding ``pip`` and its capabilities can be
98 found in the `Python Packaging User Guide <https://packaging.python.org>`__.
102 `Python Packaging User Guide: Installing Python Distribution Packages
103 <https://packaging.python.org/en/latest/installing/>`__
111 ... install ``pip`` in versions of Python prior to Python 2.7.9?
112 ----------------------------------------------------------------
114 Python only started bundling ``pip`` with Python 2.7.9. For earlier versions,
115 ``pip`` needs to be "bootstrapped" as described in the Python Packaging
120 `Python Packaging User Guide: Requirements for Installing Packages
121 <https://packaging.python.org/en/latest/installing/#requirements-for-installing-packages>`__
124 .. installing-per-user-installation:
127 -----------------------------------------------
129 Passing the ``--user`` option to ``python -m pip install`` will install a
133 ... install scientific Python packages?
134 ---------------------------------------
136 A number of scientific Python packages have complex binary dependencies, and
137 aren't currently easy to install using ``pip`` directly. At this point in
140 <https://packaging.python.org/en/latest/science/>`__
141 rather than attempting to install them with ``pip``.
145 `Python Packaging User Guide: Installing Scientific Packages
146 <https://packaging.python.org/en/latest/science/>`__
149 ... work with multiple versions of Python installed in parallel?
150 ----------------------------------------------------------------
152 On Linux, Mac OS X and other POSIX systems, use the versioned Python commands
153 in combination with the ``-m`` switch to run the appropriate copy of
154 ``pip``::
156 python2 -m pip install SomePackage # default Python 2
157 python2.7 -m pip install SomePackage # specifically Python 2.7
158 python3 -m pip install SomePackage # default Python 3
159 python3.4 -m pip install SomePackage # specifically Python 3.4
161 (appropriately versioned ``pip`` commands may also be available)
163 On Windows, use the ``py`` Python launcher in combination with the ``-m``
166 py -2 -m pip install SomePackage # default Python 2
167 py -2.7 -m pip install SomePackage # specifically Python 2.7
168 py -3 -m pip install SomePackage # default Python 3
169 py -3.4 -m pip install SomePackage # specifically Python 3.4
176 https://packaging.python.org/en/latest/mirrors/)
182 Installing into the system Python on Linux
183 ------------------------------------------
185 On Linux systems, a Python installation will typically be included as part
186 of the distribution. Installing into this Python installation requires
189 is unexpectedly upgraded using ``pip``.
192 per-user installation when installing packages with ``pip``.
195 Pip not installed
196 -----------------
198 It is possible that ``pip`` does not get installed by default. One potential fix is::
200 python -m ensurepip --default-pip
202 There are also additional resources for `installing pip.
203 <https://packaging.python.org/tutorials/installing-packages/#install-pip-setuptools-and-wheel>`__
207 ----------------------------
209 Python has typically relied heavily on source based distribution, with end
215 Python Packaging Index, this problem is expected to diminish over time,
216 as users are more regularly able to install pre-built extensions rather
220 <https://packaging.python.org/en/latest/science/>`__
221 that is not yet available as pre-built ``wheel`` files may also help with
226 `Python Packaging User Guide: Binary Extensions
227 <https://packaging.python.org/en/latest/extensions/>`__