Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Requires-Python to display better messaging/warning when a package version cannot be installed #10920

Closed
1 task done
Smille59 opened this issue Feb 22, 2022 · 2 comments
Closed
1 task done
Labels
C: error messages Improving error messages type: feature request Request for a new feature

Comments

@Smille59
Copy link

What's the problem this feature will solve?

Scenario (using numpy as example):

Given user has python 3.7 installed
And user wants to install numpy==1.22.0
And numpy does not support python 3.7, but only 3.8 and above
When user tries to pip install numpy==1.22.0
Then pip install cannot find a version that satisfied the requirement numpy=1.22.0
And pip install warns user that they may should upgrade their python installation for additional available versions
And pip install fails

Describe the solution you'd like

Let's do a compare between

pip index versions

and the error message in the pip install failure (see scenario above)

And warn "additional versions are available: [ ...versions ] check your python installation and upgrade if possible" or something to that affect

Alternative Solutions

Let's do a compare between

pip index versions

and the error message in the pip install failure (see scenario above)

And warn "additional versions are available: [ ...versions ] check your python installation and upgrade if possible" or something to that affect

Additional context

Let's do a compare between

pip index versions

and the error message in the pip install failure (see scenario above)

And warn "additional versions are available: [ ...versions ] check your python installation and upgrade if possible" or something to that affect

Code of Conduct

@Smille59 Smille59 added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Feb 22, 2022
@DiddiLeija DiddiLeija added C: error messages Improving error messages and removed S: needs triage Issues/PRs that need to be triaged labels Feb 24, 2022
@uranusjr uranusjr changed the title Pip Install could have better messaging/warning when installed python version cannot be used to install the target package and version Use Requires-Python to display better messaging/warning when a package version cannot be installed Mar 1, 2022
@q0w
Copy link
Contributor

q0w commented Mar 2, 2022

related: #9708

@uranusjr
Copy link
Member

I think #9708 is enough for now

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: error messages Improving error messages type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

4 participants