Considering the documentation pip
, it is not clear to me what the difference is between specifying a URL --find-links
or --index-url/--extra-index-url
for additional packages.
The documentation states :
-i, --index-url <url>
The base URL of the Python package index (default is https://pypi.python.org/simple ). This should indicate a repository compatible with PEP 503 (simple repository API) or a local directory laid out in the same format.
-f, --find-links <url>
If the URL or path to the html file, analyze the links to the archives. If the local path or file: // url is that directory, then look for archives in the directory list.
As far as I understand, there is no real difference between them, except that index URLs must follow PEP 503 . I assume that the usual logic is to choose the latest version from all available.
Are there any other conceptual differences between the two that I missed? If so, which ones? If not, why have both?
source
share