pip install A~=x.y A~=x.y.0
fails if A==x.z.0
(z>y) exists
#11086
Labels
type: bug
A confirmed bug or unintended behavior
Description
Say there is a pip package
A
with versions1.20.0
,1.20.1
,1.22.5
why would the following code fails? (example withboto3
but not specific to that pacakge)pip install boto3~=1.20 boto3~=1.20.0
pip tries to install
1.22.5
which doesn't satisfy both conditions.Whereas
1.20.1
does satisfy both conditions, and the following does install successfully:pip install boto3~=1.20 boto3~=1.20.0 boto3==1.20.1
This bug comes into effect when I have code that depends on packages
X
,Y
:package
X
that depends onboto3~=1.20
package
Y
that depends onboto3~=1.20.0
And I couldn't find a way to install
X
andY
.Expected behavior
pip install boto3~=1.20 boto3~=1.20.0
would install the latestboto3~=1.20.*
pip version
22.0.4
Python version
3.9.7
OS
MacOS
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: