-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip not accepting locally installed dev version of dependency #10817
Comments
Does it make a difference if you specify the |
No, same error with |
This is a bug in packaging, can you open an issue there? https://github.com/pypa/packaging/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc |
Done pypa/packaging#505 |
It looks like the packaging issue is closed, although I've still run into this issue in pip. Has the fix from packaging made its way to pip yet? |
Pip still vendors the old version of packaging |
No. See #11715 |
Description
I am trying to install a package with a
mymodule~=0.16
dependency.Locally, I have
mymodule-0.16.0.dev1234
installed.When I run
pip install
, I get the following error:ERROR: No matching distribution found for mymodule~=0.16
Expected behavior
I expect a pre-installed dev version to be accepted in place of the regular version.
From PEP 440 (https://www.python.org/dev/peps/pep-0440/#handling-of-pre-releases):
pip version
21.3.1
Python version
3.8.12
OS
macOS Monterey version 12.1
How to Reproduce
Unfortunately the two modules in question are proprietary so you cannot reproduce with the exact modules. But in general the steps are
X.Y.0.devZ
version of a module.~=X.Y
requirement.Output
Code of Conduct
The text was updated successfully, but these errors were encountered: