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

">" doesn't work, must use ">=" #9702

Closed
1 task done
kenahoo opened this issue Mar 12, 2021 · 1 comment
Closed
1 task done

">" doesn't work, must use ">=" #9702

kenahoo opened this issue Mar 12, 2021 · 1 comment
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@kenahoo
Copy link

kenahoo commented Mar 12, 2021

pip version

21.0.1 and 20.1.1 tested

Python version

3.7.3

OS

Mac OS X 10.15.7

Additional information

No response

Description

pip install 'my-pkg > 0.2.dev136461' doesn't find any matching packages:

Looking in indexes: https://pypi.org/simple, https://example.com/repository/example/simple, https://example.com/repository/example-dev/simple
ERROR: Could not find a version that satisfies the requirement my-pkg>0.2.dev136461
ERROR: No matching distribution found for my-pkg>0.2.dev136461

pip install 'my-pkg >= 0.2.dev136461' (using ">=" instead of ">") finds and installs the package my_pkg-0.2.dev136483, which is strictly greater than the 0.2.dev136461 requested originally, so it should have been found by the original command.

Expected behavior

A package matching the criteria should have been found and installed.

How to Reproduce

I don't know if this bug is limited to dev versions of packages, or to private repositories; my steps to reproduce are:

  1. Have a "dev version" of a package published in a private repo
  2. Try to install as shown above
  3. Package is not found.

Output

Shown above.

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@kenahoo kenahoo added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Mar 12, 2021
@uranusjr
Copy link
Member

Duplicate to #7579 and (more similar to the example here) #9121.

@uranusjr uranusjr added resolution: duplicate Duplicate of an existing issue/PR and removed S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Mar 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants