Python pip whl linux

pip download#

pip also supports downloading from “requirements files”, which provide an easy way to specify a whole environment to be downloaded.

Overview#

pip download does the same resolution and downloading as pip install , but instead of installing the dependencies, it collects the downloaded distributions into the directory provided (defaulting to the current directory). This directory can later be passed as the value to pip install —find-links to facilitate offline or locked down package installation.

pip download with the —platform , —python-version , —implementation , and —abi options provides the ability to fetch dependencies for an interpreter and system other than the ones that pip is running on. —only-binary=:all: or —no-deps is required when using any of these options. It is important to note that these options all default to the current system/interpreter, and not to the most restrictive constraints (e.g. platform any, abi none, etc). To avoid fetching dependencies that happen to match the constraint of the current interpreter (but not your target one), it is recommended to specify all of these options if you are specifying one of them. Generic dependencies (e.g. universal wheels, or dependencies with no platform, abi, or implementation constraints) will still match an over- constrained download requirement. If some of your dependencies are not available as binaries, you can build them manually for your target platform and let pip download know where to find them using —find-links .

Options#

Constrain versions using the given constraints file. This option can be used multiple times.

Install from the given requirements file. This option can be used multiple times.

Don’t install package dependencies.

Extra global options to be supplied to the setup.py call before the install or bdist_wheel command.

Do not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either “:all:” to disable all binary packages, “:none:” to empty the set (notice the colons), or one or more package names with commas between them (no colons). Note that some packages are tricky to compile and may fail to install when this option is used on them.

Читайте также:  Создать свой сервис linux

Do not use source packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either “:all:” to disable all source packages, “:none:” to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them.

Prefer older binary packages over newer source packages.

Directory to check out editable projects into. The default in a virtualenv is “/src”. The default for global installs is “/src”.

Include pre-release and development versions. By default, pip only finds stable versions.

Require a hash to check each requirement against, for repeatable installs. This option is implied when any package in a requirements file has a —hash option.

Specify whether the progress bar should be used [on, off] (default: on)

Disable isolation when building a modern source distribution. Build dependencies specified by PEP 518 must be already installed if this option is used.

Use PEP 517 for building source distributions (use —no-use-pep517 to force legacy behaviour).

Check the build dependencies when PEP517 is used.

Ignore the Requires-Python information.

Only use wheels compatible with . Defaults to the platform of the running system. Use this option multiple times to specify multiple platforms supported by the target interpreter.

The Python interpreter version to use for wheel and “Requires-Python” compatibility checks. Defaults to a version derived from the running interpreter. The version can be specified using up to three dot-separated integers (e.g. “3” for 3.0.0, “3.7” for 3.7.0, or “3.7.3”). A major-minor version can also be given as a string without dots (e.g. “37” for 3.7.0).

Читайте также:  Linux папка с тильдой

Only use wheels compatible with Python implementation , e.g. ‘pp’, ‘jy’, ‘cp’, or ‘ip’. If not specified, then the current interpreter implementation is used. Use ‘py’ to force implementation-agnostic wheels.

Only use wheels compatible with Python abi , e.g. ‘pypy_41’. If not specified, then the current interpreter abi tag is used. Use this option multiple times to specify multiple abis supported by the target interpreter. Generally you will need to specify —implementation, —platform, and —python-version when using this option.

Don’t clean up build directories.

Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

Extra URLs of package indexes to use in addition to —index-url. Should follow the same rules as —index-url.

Ignore package index (only looking at —find-links URLs instead).

If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local path or file:// URL that’s a directory, then look for archives in the directory listing. Links to VCS project URLs are not supported.

Examples#

python -m pip download SomePackage python -m pip download -d . SomePackage # equivalent to above python -m pip download --no-index --find-links=/tmp/wheelhouse -d /tmp/otherwheelhouse SomePackage
py -m pip download SomePackage py -m pip download -d . SomePackage # equivalent to above py -m pip download --no-index --find-links=/tmp/wheelhouse -d /tmp/otherwheelhouse SomePackage
python -m pip download \ --only-binary=:all: \ --platform macosx_10_10_x86_64 \ --python-version 27 \ --implementation cp \ SomePackage
py -m pip download ^ --only-binary=:all: ^ --platform macosx_10_10_x86_64 ^ --python-version 27 ^ --implementation cp ^ SomePackage
python -m pip download \ --only-binary=:all: \ --platform linux_x86_64 \ --python-version 3 \ --implementation cp \ --abi cp34m \ SomePackage
py -m pip download ^ --only-binary=:all: ^ --platform linux_x86_64 ^ --python-version 3 ^ --implementation cp ^ --abi cp34m ^ SomePackage
python -m pip download \ --only-binary=:all: \ --platform any \ --python-version 3 \ --implementation py \ --abi none \ SomePackage
py -m pip download ^ --only-binary=:all: ^ --platform any ^ --python-version 3 ^ --implementation py ^ --abi none ^ SomePackage
$ python -m pip download \ --only-binary=:all: \ --platform linux_x86_64 \ --python-version 33 \ --implementation cp \ --abi cp34m \ pip>=8 
$ ls pip-8.1.1-py2.py3-none-any.whl pip-8.1.1-py2.py3-none-any.whl 
C:\> py -m pip download ^ --only-binary=:all: ^ --platform linux_x86_64 ^ --python-version 33 ^ --implementation cp ^ --abi cp34m ^ pip>=8 
C:\> dir pip-8.1.1-py2.py3-none-any.whl pip-8.1.1-py2.py3-none-any.whl 
$ python -m pip download \ --only-binary=:all: \ --platform manylinux1_x86_64 --platform linux_x86_64 --platform any \ --python-version 36 \ --implementation cp \ --abi cp36m --abi cp36 --abi abi3 --abi none \ SomePackage
C:> py -m pip download ^ --only-binary=:all: ^ --platform manylinux1_x86_64 --platform linux_x86_64 --platform any ^ --python-version 36 ^ --implementation cp ^ --abi cp36m --abi cp36 --abi abi3 --abi none ^ SomePackage 

Источник

Читайте также:  Postgres linux посмотреть версию

python-pip-whl on Ubuntu 20.04 LTS (Focal Fossa)

Here is a brief guide to show you how to install python-pip-whl package:

2. Uninstall / Remove python-pip-whl package

Please follow the guidance below to uninstall python-pip-whl package:

3. Details of python-pip-whl package

Package: python-pip-whl
Architecture: all
Version: 20.0.2-5ubuntu1.6
Built-Using: appdirs (= 1.4.3-2.1), chardet (= 3.0.4-4build1), contextlib2 (= 0.6.0-2), distlib (= 0.3.0-1), html5lib (= 1.0.1-2), pep517 (= 0.8.2-1), pyparsing (= 2.4.6-1), python-cachecontrol (= 0.12.6-1ubuntu2), python-certifi (= 2019.11.28-1), python-colorama (= 0.4.3-1build1), python-distro (= 1.4.0-1), python-idna (= 2.8-1), python-ipaddr (= 2.2.0-4), python-lockfile (= 1:0.12.2-2ubuntu2), python-msgpack (= 0.6.2-1), python-packaging (= 20.3-1), python-progress (= 1.5-1), python-retrying (= 1.3.3-4), python-toml (= 0.10.0-3), python-urllib3 (= 1.25.8-2ubuntu0.1), python-webencodings (= 0.5.1-1ubuntu1), requests (= 2.22.0-2ubuntu1), setuptools (= 45.2.0-1), six (= 1.14.0-2), wheel (= 0.34.2-1)
Multi-Arch: foreign
Priority: optional
Section: universe/python
Source: python-pip
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team

Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2257
Depends: ca-certificates
Breaks: python3-virtualenv (
Original-Maintainer: Debian Python Modules Team

Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2257
Depends: ca-certificates
Breaks: python3-virtualenv (
Original-Maintainer: Debian Python Modules Team

Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2250
Depends: ca-certificates
Filename: pool/universe/p/python-pip/python-pip-whl_20.0.2-5ubuntu1_all.deb
Size: 1798932
MD5sum: 1ac59d404b3b97dd4ac924f7bc13c834
SHA1: 4b8808b96d7b1d8457be450b0578ba3147be12c0
SHA256: c45c5bab6f92bfd31778ad057ca5d1551a1440e3fbbfdd6247a2120114065f86
Homepage: https://pip.pypa.io/en/stable/
Description: Python package installer
Description-md5: 1284c358e53d20e9aa626d1280d5ee73

4. References on Ubuntu 20.04 LTS (Focal Fossa)

5. The same packages on other Linux Distributions

python-pip-whl (9.0.1-2.3~ubuntu1.18.04.5) Ubuntu 18.04 LTS (Bionic Beaver)

python-pip-whl (8.1.1-2ubuntu0.6) Ubuntu 16.04 LTS (Xenial Xerus)

python-pip-whl (20.3.4-4) Ubuntu 21.10 (Impish Indri)

python-pip-whl (20.3.4-4) Ubuntu 22.04 LTS (Jammy Jellyfish)

python-pip-whl (18.1-5) Debian 10 (Buster)

Источник

Оцените статью
Adblock
detector