You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Is this information available with -v? There can be a lot of versions being excluded and it's likely not a good idea to just show all of them. I also recall there's already an issue for this, not sure if it's implemented or not. Would be nice if someone bothers to check.
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: