[Python] How can I detect all missing packages at once when installing from a private PyPI...

Discussão em 'Python' iniciado por Stack, Junho 29, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working in a Python project that uses a private Artifactory PyPI index. When I run:

    pip install -e ".[dev]" \
    --index-url https://<my-artifactory>/artifactory/api/pypi/pypi-local/simple \
    --extra-index-url https://<my-artifactory>/artifactory/api/pypi/pypi-local-external/simple


    the installation fails if a required package is missing from the index. The problem is that it only reports the first missing package. Once I upload that one and try again, it fails on the next one, and so on.

    The real issue is that these are indirect dependencies — not explicitly listed in my pyproject.toml, but required by the build system or other packages. For example, editables was required by hatchling, but I only found that out after the first install attempt failed.

    I’ve tried using:

    pip install --dry-run --report report.json ...


    but the report doesn’t always include missing build-time dependencies, and sometimes it’s empty or unhelpful.

    Is there a reliable way to determine all missing packages, including indirect and build-system dependencies, in one go when installing from a private index?

    Continue reading...

Compartilhe esta Página