Skip to content

Resolver spends too much time calculating "weights" to parents #10557

@Rizhiy

Description

@Rizhiy

Description

When running something like pip install -c requirements.txt <package_name> sometimes pip starts checking unnecessary versions.

I know that version checking is unnecessary because requirements.txt contains all the packages with exact versions.

Everything works as expected with legacy resolver.

Expected behaviour

Since all of the versions are already specified, just get them.

pip version

21.2.4

Python version

3.8.8

OS

Ubuntu

How to Reproduce

Unfortunately, I can't provide a reproducible example since it only happens with a package on internal pip index.

The offending package does have the version specified in requirements.txt and a different version is installed when the command is run.

Output

It says something like:

INFO: pip is looking at multiple versions of kiwisolver to determine which version is compatible with other requirements. This could take a while.

But I already have kiwisolver==1.3.1 in my requirements.txt.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions