Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/html/topics/dependency-resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ will avoid performing dependency resolution during deployment.

## Dealing with dependency conflicts

This section uses hypothetical packages (`package_coffee`, `package_tea`, and
`package_water`) to explain how pip resolves conflicts.

This section provides practical suggestions to pip users who encounter
a `ResolutionImpossible` error, where pip cannot install their specified
packages due to conflicting dependencies.
Expand Down Expand Up @@ -194,6 +197,11 @@ because they each depend on different versions of the same package
- ``package_tea`` version ``4.3.0`` depends on version ``2.3.1`` of
``package_water``

Note: `package_coffee`, `package_tea`, and `package_water` are hypothetical
packages used only to illustrate dependency conflicts. They are not real
projects you can install.


Sometimes these messages are straightforward to read, because they use
commonly understood comparison operators to specify the required version
(e.g. `<` or `>`).
Expand Down Expand Up @@ -252,10 +260,10 @@ the same version of `package_water`, you might consider:

In the second case, pip will automatically find a version of both
`package_coffee` and `package_tea` that depend on the same version of
`package_water`, installing:
`package_water`, for example:

- `package_coffee 0.44.1`, which depends on `package_water 2.6.1`
- `package_tea 4.4.3` which _also_ depends on `package_water 2.6.1`
- `package_tea 4.4.3`, which also depends on `package_water 2.6.1`

If you want to prioritize one package over another, you can add version
specifiers to _only_ the more important package:
Expand Down
1 change: 1 addition & 0 deletions news/13561.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarified dependency resolution docs: added note on hypothetical packages, fixed version mismatch, and added introduction line.
Loading