Links to VCS project URLs are not supported.Most of the time, you’ll use a package management solution like pip or the ActiveState Platform to install your dependencies. If a local path or file:// URL that’s a directory, then look for archives in the directory listing. If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. Ignore package index (only looking at -find-links URLs instead). Should follow the same rules as -index-url. extra-index-url #Įxtra URLs of package indexes to use in addition to -index-url. This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format. no-clean #īase URL of the Python Package Index (default ). Generally you will need to specify -implementation, -platform, and -python-version when using this option. Use this option multiple times to specify multiple abis supported by the target interpreter. If not specified, then the current interpreter abi tag is used. Only use wheels compatible with Python abi, e.g. Use ‘py’ to force implementation-agnostic wheels. If not specified, then the current interpreter implementation is used. Only use wheels compatible with Python implementation, e.g. Version can also be given as a string without dots (e.g. The version can be specified using up to three dot-separated Defaults to a version derived from the running The Python interpreter version to use for wheel and “Requires-Python”Ĭompatibility checks. Use this option multiple times to specify multiple platforms supported by the target interpreter. Defaults to the platform of the running system. check-build-dependencies #Ĭheck the build dependencies when PEP517 is used. Use PEP 517 for building source distributions (use -no-use-pep517 to force legacy behaviour). ![]() Build dependencies specified by PEP 518 must be already installed if this option is used. Specify whether the progress bar should be used (default: on) -no-build-isolation #ĭisable isolation when building a modern source distribution. This option is implied when any package in a requirements file has a -hash option. Require a hash to check each requirement against, for repeatable installs. By default, pip only finds stable versions. Include pre-release and development versions. The default for global installs is “/src”. src #ĭirectory to check out editable projects into. Prefer older binary packages over newer source packages. Packages without binary distributions will fail to install when this option is used on them. Accepts either “:all:” to disable all source packages, “:none:” to empty the set, or one or more package names with commas between them. Can be supplied multiple times, and each time adds to the existing value. only-binary #ĭo not use source packages. Note that some packages are tricky to compile and may fail to install when this option is used on them. 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). global-option #Įxtra global options to be supplied to the setup.py call before the install or bdist_wheel command. no-deps #ĭon’t install package dependencies. Install from the given requirements file. Options #Ĭonstrain versions using the given constraints file. If some of your dependencies are notĪvailable as binaries, you can build them manually for your target platformĪnd let pip download know where to find them using -find-links. Platform, abi, or implementation constraints) will still match an over-Ĭonstrained download requirement. universal wheels, or dependencies with no Is recommended to specify all of these options if you are specifying one of Match the constraint of the current interpreter (but not your target one), it To avoid fetching dependencies that happen to It is important to note that these options all default to theĬurrent system/interpreter, and not to the most restrictive constraints (e.g. ![]() only-binary=:all: or -no-deps is required when using any implementation, and -abi options provides the ability to fetchĭependencies for an interpreter and system other than the ones that pip is Pip download with the -platform, -python-version, This directory can later be passed as the value to pip install -find-links to facilitate offline or locked down package installation. Pip download does the same resolution and downloading as pip install,īut instead of installing the dependencies, it collects the downloadedĭistributions into the directory provided (defaulting to the currentĭirectory). ![]() Pip also supports downloading from “requirements files”, which provideĪn easy way to specify a whole environment to be downloaded. PyPI (and other indexes) using requirement specifiers.
0 Comments
Leave a Reply. |