Skip to content

The priority issue regarding the download mirror address for pip #13672

@pptfz

Description

@pptfz

When I use the following command, what I understand is that the -i option indicates the source from which I want to download the package.
--extra-index-url refers to the alternative source behind it.

However, the actual test result I got was that I always accessed the source after the "--extra-index-url" parameter, and never downloaded from the source after the "-i" parameter.

I don't understand why this is the case.Could help me solve this problem? Thank you.

RUN --mount=type=cache,target=/root/.cache/pip \
    pip install --default-timeout=120 --retries=10 \
      -r requirements.txt \
      -i https://mydomain.com/repository/pypi_group/simple \
     --extra-index-url https://pypi.org/simple/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions