Skip to content

Commit

Permalink
Add the differences between pip install and uv pip install instal…
Browse files Browse the repository at this point in the history
…lation directories in the pip compatibility document.
  • Loading branch information
FishAlchemist committed Nov 23, 2024
1 parent 35ff802 commit 16bd501
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/pip/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,3 +462,14 @@ is.
For example, `uv pip install foo bar` prioritizes newer versions of `foo` over `bar` and could
result in a different resolution than `uv pip install bar foo`. Similarly, this behavior applies to
the ordering of requirements in input files for `uv pip compile`.

## Installing a package from a specified directory

UV does not reinstall already installed packages by default.

Consequently, it will not behave like `pip install <folder>`, reinstalling every time. This is
expected behavior, as UV anticipates that you might want to update to a newer version.

For packages under development, [editable installs](packages.md#editable-packages) are recommended.
Alternatively, you can force a reinstall with the --reinstall flag or by setting the
[configuration](../reference/settings.md#pip_reinstall).

0 comments on commit 16bd501

Please sign in to comment.