Skip to content

Explain why version cannot be retrieved due to python-requires #9615

@Colin-b

Description

@Colin-b

What's the problem this feature will solve?

I am trying to install a specific version of a package (ipython==7.20.0 in this case). However my version of python is 3.6 and the python-requires of this version is 3.7 at the latest. Leading to pip displaying this upon install request:

ERROR: Could not find a version that satisfies the requirement ipython==7.20.0
ERROR: No matching distribution found for ipython==7.20.0

Describe the solution you'd like

I would like for pip to display that even if this version exists, it cannot be installed as it is incompatible with my python version.

A message like the following would be neat:

ERROR: Could not find a version that satisfies the requirement ipython==7.20.0
ERROR: ipython==7.20.0 was found, however it cannot be installed as your python version (3.6.X) is incompatible with the requirements of this distribution (>=3.7).

Now that more and more python modules are dropping support for python 3.6 (pandas, numpy, werkzeug from the top of my head) while python 3.6 is still heavily used, I am fairly certain the number of users facing this rejection is high.

The message is not clear enough to understand in one go what the issue was and forces the developer in question to investigate. While pip already did the investigation, but did not shared the reason.

It's maybe a long shot but it would be even better if the message could provide the latest compatible version for such project (if any).

Thanks for your time

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions