Hint to users that versions are filtered based on current python version #11446
Labels
resolution: duplicate
Duplicate of an existing issue/PR
type: feature request
Request for a new feature
What's the problem this feature will solve?
When trying to install a package a user may be faced with a message
no matching distribution found
when the package and version do exist. For example:No matching distribution found for ansible==6.0
If you go to pypi you can see that ansible 6.0 does exist: https://pypi.org/project/ansible/6.0.0/
The install failed in this case because ansible 6.0 requires python 3.8 and this was being executed on python 3.6.
The feature I would like is to hint to the user that the version was not found because available pypi package versions are filtered based on the currently running version of python.
Describe the solution you'd like
Query whether the package exists for other versions of python and indicate that to the user.
For example:
ansible==6.0 requires python >= 3.8 and cannot be installed with the current python version (3.6.0)
There would need to be multiple messages depending on whether any packages matching the constraint exist or not.
Alternative Solutions
A simpler solution would just be to hint to the user that the versions returned by pip are linked to the current python version.
For example:
No matching distribution found for ansible==6.0 that is compatible with ${CURRENT_PYTHON_VERSION}
Additional context
I hope this is a simple to implement request that will improve troubleshooting for end users.
Code of Conduct
The text was updated successfully, but these errors were encountered: