-
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 doesn't spot conflicting versions #775
Comments
currently, pip is written such that requirements in the requirements file win out, period (and for other dependencies, it's first version found, wins as well) should/could it be smarter? at least be aware and inform of this situation? I think so, but it's not right now. there was a thread related to this on distutils-sig recently |
Is this lack of detection of conflicting requirements only due to use of requirements file? I'm observing the same behavior when passing specifications on command line like I guess that's what @qwcode meant by
If so then maybe we should change the title of this issue to more general statement Pip doesn't spot conflicting versions.? |
@piotr-dobrogost agreed, I've changed the title. |
#988 is the main issue for this now. closing this as a dupe. @piotr-dobrogost see the #988 description. if that's still not clear, respond over there, and I'll try to improve it. |
This command ensures that all packages installed have all the requirements they need, and that requirements have compatible versions. This is useful because pip can install incompatible dependencies[1], or a user may have manually (un)installed a package. [1] pypa#775
This command ensures that all packages installed have all the requirements they need, and that requirements have compatible versions. This is useful because pip can install incompatible dependencies[1], or a user may have manually (un)installed a package. [1] pypa#775
If I create a dummy package -- here's /tmp/example_package/setup.py (note the requirements):
Here's /tmp/example_package/sample.py:
Now, I create a virtualenv:
I create a requirements.pip with conflicting requirements:
Pip happily installs this:
Is this a bug? My
example_package
won't work, because its requirements aren't met.The text was updated successfully, but these errors were encountered: