Replies: 1 comment 1 reply
-
|
Pip's dependency resolver cannot resolve a set of constraints which are contradictory (one package requiring sub-spam-dont-use Other than your "hack" of installing then removing, you could also avoid the resolver completely and install that dependency without its subdependencies.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to explicitly exclude transitive sub dependencies?
Say for example I have in my
dependencies:super-spamAnd
super-spamhas a dependency:sub-spam-dont-usemain-spamIf I do
pip install -e .via thepyproject.tomlin my own project, is there a way to exclude installingsub-spam-dont-use?I've tried:
sub-spam-dont-use != *The hack that I have been using is:
pip install . && pip uninstall sub-spam-dont-useBut it seems off since its not part of pyproject.toml.
Reference attempt:
Beta Was this translation helpful? Give feedback.
All reactions